auto delete text in textbox

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 74
Reputation: sacarias40 is an unknown quantity at this point 
Solved Threads: 0
sacarias40's Avatar
sacarias40 sacarias40 is offline Offline
Junior Poster in Training

auto delete text in textbox

 
0
  #1
Nov 22nd, 2008
ok i have a few textboxes and they have a "default" text.
when you put your cursor into the textbox how can i delete the text automaticaly.

see my picture to understand more
Attached Thumbnails
mobcalc.jpg  
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 305
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 25
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz

Re: auto delete text in textbox

 
0
  #2
Nov 22nd, 2008
Add the following code to the on Click event of each of the comboboxes:

  1. Me.ComboBox1.SelectedIndex = -1

Replace "ComboBox1" with the name of each comboBox.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 74
Reputation: sacarias40 is an unknown quantity at this point 
Solved Threads: 0
sacarias40's Avatar
sacarias40 sacarias40 is offline Offline
Junior Poster in Training

Re: auto delete text in textbox

 
0
  #3
Nov 22nd, 2008
thank you that helped so much... *****
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC