Combo Box Change Event Doesn't Work 
Author Message
 Combo Box Change Event Doesn't Work

I have a Combo Box and a Text Box on a VB form, and I want to update the
text box (or do anything else) when the combo box changes, but when I put an
action (e.g., Text1.Text=Combo1.Text) into the combo box's Change event,
nothing happens. I'm using VS6.0 SP3. What gives?

Thanks for any pointers. I could find nothing cogent in the KnowledgeBase.

Cheers,
Gary Millward



Sat, 05 Jul 2003 00:08:40 GMT  
 Combo Box Change Event Doesn't Work
Use the combo's Click event instead...


Quote:
> I have a Combo Box and a Text Box on a VB form, and I want to update the
> text box (or do anything else) when the combo box changes, but when I put
an
> action (e.g., Text1.Text=Combo1.Text) into the combo box's Change event,
> nothing happens. I'm using VS6.0 SP3. What gives?

> Thanks for any pointers. I could find nothing cogent in the KnowledgeBase.

> Cheers,
> Gary Millward



Sat, 05 Jul 2003 00:18:24 GMT  
 Combo Box Change Event Doesn't Work
Thanks, Ken - that's what I was after. The Change event, as I found out, is
triggered when the text in the combobox text area is changed explicitly by
the user typing in it, rather than through a selection from the drop-down.
Shoulda thought to use the Click event.

Cheers,
Gary


Quote:
> Use the combo's Click event instead...



> > I have a Combo Box and a Text Box on a VB form, and I want to update the
> > text box (or do anything else) when the combo box changes, but when I
put
> an
> > action (e.g., Text1.Text=Combo1.Text) into the combo box's Change event,
> > nothing happens. I'm using VS6.0 SP3. What gives?

> > Thanks for any pointers. I could find nothing cogent in the
KnowledgeBase.

> > Cheers,
> > Gary Millward



Sun, 06 Jul 2003 09:15:20 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. DB Combo doesn't fire Change event?

2. Find on combo box doesn't work

3. Combo box in Access doesn't work in VB

4. Changing control name of button doesn't change event name to be the same

5. Setting Combo box ListIndex initiates Combo box Click event

6. Dropdown Combo Box doesn't close.

7. combo box doesn't paint

8. fRefreshLinks Doesn't work if path doesn't exist

9. when i put controls on the form the key press event doesn't work

10. Document_Open event doesn't work in template

11. dbList.BoundColumn doesn't work with MatchEntry in Click event

12. dbList.BoundColumn doesn't work with MatchEntry in Click event

 

 
Powered by phpBB® Forum Software