I need help with my combobox plsssss

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

Join Date: Sep 2009
Posts: 4
Reputation: Umarmai is an unknown quantity at this point 
Solved Threads: 0
Umarmai Umarmai is offline Offline
Newbie Poster

I need help with my combobox plsssss

 
0
  #1
Sep 17th, 2009
Please faithfuls,
I ve been vein problems with the properties of the combo box.
wat i really want is disallow users to type into my combobox ( I want them to be limited to the items in the combo)
10qs.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 264
Reputation: GeekByChoiCe is on a distinguished road 
Solved Threads: 51
GeekByChoiCe GeekByChoiCe is offline Offline
Posting Whiz in Training

Re: I need help with my combobox plsssss

 
0
  #2
Sep 17th, 2009
set in the comboxbox properties the dropdownstyle to dropdownlist
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 19
Reputation: raymyster has a little shameless behaviour in the past 
Solved Threads: 0
raymyster raymyster is offline Offline
Newbie Poster

Re: I need help with my combobox plsssss

 
1
  #3
Sep 19th, 2009
In the Combobox keyPress event add this:

  1. e.KeyChar = ChrW(0)


  1. Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox4.KeyPress
  2. e.KeyChar = ChrW(0)
  3. End Sub

Regards.
Share your knowledge It's one way to achieve immortality.
My Blog: http://blog.rabihtawil.com
My Programming Community: http://www.coderisland.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 148
Reputation: samir_ibrahim is on a distinguished road 
Solved Threads: 16
samir_ibrahim's Avatar
samir_ibrahim samir_ibrahim is offline Offline
Junior Poster

Re: I need help with my combobox plsssss

 
0
  #4
Sep 19th, 2009
Very nice trick
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC