Hi,
Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only
Printable View
Hi,
Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only
try to capture the ascii value of the charactrer that u type in top the textbox and then convert it to uppercase using the ascii value again.
Hi Honey,
It's just so simple.
Create a javascript function ConverToUpper() which will be called onChange() event of textbox (clientside)
Here is the body of ConverToUpper()
function ConverToUpper()
{
document.getElementByID('TextBox1').value = document.getElementByID('TextBox1').value.toUpperCase();
}
Got It.:cool:
--V V--
Vikas Vaidya
[QUOTE=honey_sonal;14211]Hi,
Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only[/QUOTE]
In Textchanged Event
Dim s As String
s = Me.TextBox1.Text
s = s.ToUpper
Me.TextBox1.Text = s
Ucase(string)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal _
e As System.EventArgs) Handles MyBase.Load
' Set the TextBox's character casing.
TextBox2.CharacterCasing = CharacterCasing.Upper
End Sub
[U]Thanx to MS[/U]...no need to write any code for that...
Set the text box's CharacterCasing property to CharacterCasing.Upper.
at design time
[QUOTE=honey_sonal;14211]Hi,
Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only[/QUOTE]
change in the textbox character casing properities to upper case