>I have a combobox on a form. In the Valid event of the combobox I DO FORM which calls up a modal form. The modal form contains a lone combobox and an Exit button. When I choose a value in the modal form combobox that works, but when I press Exit to return to my modeless original calling form, it wipes out the Value and/or DisplayValue of the original combobox and shows me the drop-down list that was in the modal form that I just left.
>
>Is there a way to protect the original combobox so its value doesn't change when I exit the modal form with combobox?
>
>Thanks for the assist. You score 1000 points for helping me out, but the points don't mean anything. They are just there to make me feel like I am giving you something in return for helping me out.
Steve, one thought on aside:
For this particular case calling the form from Valid event may work, but in general if you do this you will not be able to SetFocus to anything in your form. This will give you an error because SetFocus is not allowed from Valid event and your form originally is called from there.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison