Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combobox disabling _change()?

Status
Not open for further replies.

notuserfriendly

Programmer
May 7, 2004
82
SE
Hi

I'm using a a form with several ComboBoxes. I'm trying to make the comboboxes change each other, so that they can't have the same value. My problem is that i want to disable the event when I change the Listindex. Otherwise it all goes wrong.

When I'm in my first CBX_change()
this results in a loop since it results in a new event.
....
Combobox3.Listindex = ChangeTo
....

I
 
Hi
I'm not sure I fully understand what you're asking for but you could try
application.enableevents = false/true

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
Actually I've already tried it, and it doesn't work.
I've solved the problem in another way, but it would be nice to know if it's possible

I
 


You really should not disable events. However, you could use code within your combobox click or change events, to determine whether or not to execute certain code, eh?

Skip,

[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top