
08-29-2000, 04:36 PM
|
 |
Code Meister
Retired Moderator * Guru *
|
|
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
|
|
Re: Problem with SetFocus
|
Having your module code tied so tightly to your form somewhat negates the advantages of having a module. Instead of explicitly calling form1.control I would pass the control as an argument to the function.
That aside though, you probably want to set the selected property of the combo box.
Another problem is that if you have a MsgBox visible, that has the focus by default (it's modal after all) so you may not see any changes on form1.
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
|
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
|