3 Replies - 3737 Views - Last Post: 24 March 2009 - 07:23 AM Rate Topic: -----

#1 sarathkgw  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 03-November 08

Change a caracter to UperCase while typing

Posted 23 March 2009 - 10:45 PM

Hi Friends,
I am using following codings to change a character to it's Upper-Case for each key-Pressing. This runs fine in VB6 and lower versions

Private Sub txtUni_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub


But it is impossible in BV.NET.
Please help me anyone to do the same in VB .NET.

Thank you in advance.
Sarath
++++++++++++++++++

Is This A Good Question/Topic? 0
  • +

Replies To: Change a caracter to UperCase while typing

#2 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: Change a caracter to UperCase while typing

Posted 23 March 2009 - 11:55 PM

You could try something like this:

UpperCaseTextbox.CharactorCasing = Lower



I'm not quite sure if this is what you are looking for, but it worked for me :)
Was This Post Helpful? 0
  • +
  • -

#3 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Change a caracter to UperCase while typing

Posted 24 March 2009 - 05:05 AM

use this code in textbox1 on Keydown event
textbox1.text.ToUpper


This post has been edited by noorahmad: 24 March 2009 - 05:07 AM

Was This Post Helpful? 0
  • +
  • -

#4 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1050
  • View blog
  • Posts: 4,076
  • Joined: 02-July 08

Re: Change a caracter to UperCase while typing

Posted 24 March 2009 - 07:23 AM

Why not set the characterCasing property to UpperCase in the textbox property window?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1