Re: Populating ComboBox
- From: "Dave O." <nobody@xxxxxxxxxxx>
- Date: Thu, 1 Feb 2007 14:52:41 -0000
<rn5a@xxxxxxxxxxxxxx> wrote in message
news:1170340113.285671.59920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Now why is the
Combo1.ListIndex = 0
line invoking the OnClick event function of the ComboBox?
Because it is essentially the same as if a user selected the first item.
Easy to fix, set a flag. One way to do this (out of millions):
In the form declarations
Private bnBusy as Boolean
Then in the routine:
bnBusy = True
Combo1.ListIndex = 0
bnBusy = False
Then at the start of the Click event
If not bnBusy then
' Your existing code.
End If
Best Regards
Dave O.
.
- Follow-Ups:
- Re: Populating ComboBox
- From: rn5a
- Re: Populating ComboBox
- References:
- Populating ComboBox
- From: rn5a
- Populating ComboBox
- Prev by Date: Re: vb6 on vista ultimate
- Next by Date: Re: FileDateTime???
- Previous by thread: Populating ComboBox
- Next by thread: Re: Populating ComboBox
- Index(es):
Relevant Pages
|