Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb_dotnet thread: Combo Box


Message #1 by "Seth Bembeneck" <sbembeneck@c...> on Fri, 22 Feb 2002 04:15:21
I tried all three of them, and nothing happend. The only thing I have 
changed in the box I'm trying to use is the name.

Seth


> > I don't see an AutoPostback property, Here is the code:
> > 
> > Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As 
> > System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress
> >         Dim temp As String = ComboBox1.Text + e.KeyChar
> >         
> >         MsgBox(temp)
> > end sub
> > 
> > When I start typing in the combo box, the msg box does not appear.
> > 
> > Seth
> 
> Seth
> 
> I believe the Autopostback property applies to the web version, rather 
> than windows form version of this control.
> 
> What type of combo box is this? I.E. is its DropDownStyle property set 
to 
> Simple, DropDown, or DropDownList? Drawing one of each of thse on a 
blank 
> form and putting your code in seems to work fine, but a dropdownlist 
will 
> behave differently to the other two. Pressing "a" will pop up "aa" for 
a 
> Simple or DropDown combo, as the .text property will allready be the 
value 
> of the key. Doing the same in a DropDownList will just pop up "a" as 
> the .text property  can only be set to an item in the list.
> 
> Check your properties for values that are not the default - you may 
have 
> altered somthing which is preventing your event firing.
> 
> Tim Ensor

  Return to Index