Click to See Complete Forum and Search --> : combo box


d.paulson
March 8th, 2000, 09:50 PM
I want to populate combo2 from a criteria that is selected from combo1. I have put the combo2 populating routine in combo1 click() but this fires to often.I have used the combo lostfocus() but then user must wait for combo2 to populate.
is there a way to detect when combo1 item has been selected but before it loses focus? My database is rather large and speed is important.
thanks in advance.

TH1
March 9th, 2000, 02:51 AM
What do you mean that it fires too often?
The click event should only fire when a user clicks on an item in a combo box or if you change its listindex in code.

Johnny101
March 9th, 2000, 11:59 AM
There is a new property in VB6 called CausesValidation. Set this to true and then you will get a Validate event, which fires before LostFocus.

Good luck,
John

John Pirkey
MCSD
www.ShallowWaterSystems.com