943,735 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 616
  • VB.NET RSS
Sep 17th, 2009
0

I need help with my combobox plsssss

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Umarmai is offline Offline
4 posts
since Sep 2009
Sep 17th, 2009
0

Re: I need help with my combobox plsssss

set in the comboxbox properties the dropdownstyle to dropdownlist
Featured Poster
Reputation Points: 208
Solved Threads: 168
Practically a Master Poster
GeekByChoiCe is offline Offline
692 posts
since Jun 2009
Sep 19th, 2009
1

Re: I need help with my combobox plsssss

In the Combobox keyPress event add this:

VB.NET Syntax (Toggle Plain Text)
  1. e.KeyChar = ChrW(0)


VB.NET Syntax (Toggle Plain Text)
  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.
Reputation Points: -3
Solved Threads: 0
Light Poster
raymyster is offline Offline
26 posts
since Jan 2008
Sep 19th, 2009
0

Re: I need help with my combobox plsssss

Very nice trick
Reputation Points: 69
Solved Threads: 19
Junior Poster
samir_ibrahim is offline Offline
155 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC