Hi!
Its because Combobox behaviour - you receive drop down event, than AFTER it combobox tries to open its content list of items, thus, activating the first form. To avoid this, put 'NODEFAULT' and 'return .F.' in DropDown event after DO Form2.
HTH
>I dont know how i can ask this question.
>
>Best way is to make what i make.
>
>1 -) Create 2 forms.Save this forms as form1,form2
>
>2 -) Put a combo in form1.
>
>3 -) Write this code in the DropDown event from the combo :
>
>do form Form2
>
>4 -) Run form1.Click the down button from the combo.
>
>Form2 is running but behind form1.
>When you close form2 and click the combos down button again this error is pass.
>
>How can i run form2 before form1.
>Thanks.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.