Combobox click/selectedindex problems 
Author Message
 Combobox click/selectedindex problems
  When a combobox is used as the Click event, it no
longer works properly (as it does in eVB).  It responds
as soon as you click on the drop arrow or the text
window.  Formerly, after the 1st click to drop down the
list, you had to click on one of the combo list items
before the Click event responded.  Of course you're
saying, use the SelectedIndexChanged event - but that is
where the problem is.  One has to be able to initialize a
combobox at various times during a program and NOT have
it respond with the associated event code.
  I am using Combobox1.SelectedIndex = indexvariable to
initialize or set a combobox via code prior to the
operator being able to access the combobox.  But this
causes the code in the Combobox1.SelectedIndexChanged (.)
sub to execute - this is not acceptable and causes major
problems in the program!
  This methodology worked fine in eVB, and is standard
programming practice.  So what do we have to do now in
this .NET language?



Sat, 17 Dec 2005 00:41:07 GMT  
 Combobox click/selectedindex problems
Quote:
> this .NET language?

Sorry... this group's for VB6 and under. All .Net groups have "dotnet" in their names

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..


Quote:
>   When a combobox is used as the Click event, it no
> longer works properly (as it does in eVB).  It responds
> as soon as you click on the drop arrow or the text
> window.  Formerly, after the 1st click to drop down the
> list, you had to click on one of the combo list items
> before the Click event responded.  Of course you're
> saying, use the SelectedIndexChanged event - but that is
> where the problem is.  One has to be able to initialize a
> combobox at various times during a program and NOT have
> it respond with the associated event code.
>   I am using Combobox1.SelectedIndex = indexvariable to
> initialize or set a combobox via code prior to the
> operator being able to access the combobox.  But this
> causes the code in the Combobox1.SelectedIndexChanged (.)
> sub to execute - this is not acceptable and causes major
> problems in the program!
>   This methodology worked fine in eVB, and is standard
> programming practice.  So what do we have to do now in
> this .NET language?



Sat, 17 Dec 2005 00:54:19 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ComboBox.SelectedIndex = Nothing problem...

2. Clicking outside combobox trigger the combobox click event

3. SelectedIndex not corresponding with .text in ComboBox

4. Bound ComboBox SelectedIndex Defaults to 0

5. Bound ComboBox SelectedIndex Defaults to 0

6. combobox selectedindex

7. Clicking outside combobox trigger click event of the combo box

8. listbox selectedindex problem

9. SelectedIndex problem

10. selectedIndex problem

11. Problem with Microsoft ComboBox as well as MicroHelp ComboBox

12. Populate ComboBox only When Clicked on.

 

 
Powered by phpBB® Forum Software