I'm developing a windows aplication that starts in a main form and when user selects FILE/NEW PROJECT, a wizard is displayed (in modal way). This wizard is a sequence of forms displayed with showDialog. Each step of the wizard has a NEXT button and a BACK button. The code is like these:
When FILE/NEW PROJECT menu of main form is selected:
When NEXT button of step 1 is pressed:
When NEXT is pressed, the main form lost focus for any windows aplication running (word, excel, explorer, IE, etc...) and the step2Form appears in front of it. Now, we have my main form hidden by a windows application and the step2 form in front of the windows application. There's a file sample in:
This is the original error!
This is a try to solve it (not good yet)!
Anybody knows how can fix it?
ps. sorry about my english, i'm brazilian ;)