Geeks Talk

Prepare for your Next Interview




Convert to the uppercase letters

This is a discussion on Convert to the uppercase letters within the VB.NET forums, part of the Software Development category; 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 ...


Go Back   Geeks Talk > Software Development > VB.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-03-2007
Junior Member
 
Join Date: Jun 2007
Location: mumbai
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
honey_sonal is on a distinguished road
Convert to the uppercase letters

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
Reply With Quote
The Following User Says Thank You to honey_sonal For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-07-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,369
Thanks: 7
Thanked 123 Times in 111 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Convert to the uppercase letters

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.
Reply With Quote
  #3 (permalink)  
Old 07-11-2007
Contributing Member
 
Join Date: Jun 2007
Location: Delhi, India
Posts: 49
Thanks: 0
Thanked 20 Times in 17 Posts
vikasvaidya is on a distinguished road
Re: Convert to the uppercase letters

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.

--V V--
Vikas Vaidya
Reply With Quote
  #4 (permalink)  
Old 07-25-2007
Junior Member
 
Join Date: Jul 2007
Location: Pondicherry
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
prabumj is on a distinguished road
Re: Convert to the uppercase letters

Quote:
Originally Posted by honey_sonal View Post
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
In Textchanged Event
Dim s As String
s = Me.TextBox1.Text
s = s.ToUpper
Me.TextBox1.Text = s
Reply With Quote
  #5 (permalink)  
Old 08-03-2007
Junior Member
 
Join Date: Aug 2007
Location: malta
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
xopchan is on a distinguished road
Re: Convert to the uppercase letters

Ucase(string)
Reply With Quote
  #6 (permalink)  
Old 12-12-2007
Junior Member
 
Join Date: Dec 2007
Location: india
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
parii is on a distinguished road
Re: Convert to the uppercase letters

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
Reply With Quote
  #7 (permalink)  
Old 12-26-2007
Junior Member
 
Join Date: Dec 2007
Location: india
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
nitin_padwal is on a distinguished road
Re: Convert to the uppercase letters

Thanx to MS...no need to write any code for that...
Set the text box's CharacterCasing property to CharacterCasing.Upper.
at design time
Reply With Quote
  #8 (permalink)  
Old 04-08-2008
Contributing Member
 
Join Date: Oct 2007
Location: trichy
Posts: 92
Thanks: 2
Thanked 10 Times in 8 Posts
sarathi trichy is on a distinguished road
Smile Re: Convert to the uppercase letters

Quote:
Originally Posted by honey_sonal View Post
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
change in the textbox character casing properities to upper case
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Letters of Oracle janelyn Oracle 3 11-30-2007 02:06 AM
Replace the letters with numbers[1] psuresh1982 Brainteasers 3 03-15-2007 07:03 AM
Replace the letters with numbers[2] psuresh1982 Brainteasers 3 03-15-2007 03:12 AM
replace the letters with number 1 to 9 psuresh1982 Brainteasers 3 02-16-2007 06:17 AM
replace the letters.......... psuresh1982 Brainteasers 2 11-29-2006 12:50 AM


All times are GMT -4. The time now is 12:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved