Hi All,
I recently discovered that there was an oddity with one of my controls (dropdown/combobox). When an item is selected, the Click event then updates values of some other controls based on what was selected (in this case, if you pick a "country" in the drop-down list, it will automatically set the value of "Region, Country Code (Mobile), Country Code (Non-Mobile), and Country Abbreviation". This all works great, but I realized since it's a combobox, if I type the value (it auto populates as you type), and then I just tab into the next field, the "Click" doesn't happen. So if I then click on the field it updates.
I realized I could put This.Click into the LostFocus event, and that worked.
So my question is... is this really the "right" way to go about it? Should LostFocus make a call to Click, or should Click make a call to LostFocus, or should they both make a call to some function elsewhere.. Just trying to figure out what the development "norm" is for this?
Or is there some other better way all together?
Thanks
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
I recently discovered that there was an oddity with one of my controls (dropdown/combobox). When an item is selected, the Click event then updates values of some other controls based on what was selected (in this case, if you pick a "country" in the drop-down list, it will automatically set the value of "Region, Country Code (Mobile), Country Code (Non-Mobile), and Country Abbreviation". This all works great, but I realized since it's a combobox, if I type the value (it auto populates as you type), and then I just tab into the next field, the "Click" doesn't happen. So if I then click on the field it updates.
I realized I could put This.Click into the LostFocus event, and that worked.
So my question is... is this really the "right" way to go about it? Should LostFocus make a call to Click, or should Click make a call to LostFocus, or should they both make a call to some function elsewhere.. Just trying to figure out what the development "norm" is for this?
Or is there some other better way all together?
Thanks
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."