If you hide a modal dialog, you can't do anything until you re-show it and
close it. By definition, a modal dialog must be the topmost form in your
application and takes control of the application until it is closed. I suspect
you would be better off using Form.Show(). Another alternative would be using
the following in your Sub Main:
Sub Main
dim Form1 as new myForm
Application.Run(myForm)
End Sub
Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
> Any suggestions on how to make a form not visible when displayed via
> Form1.ShowDialog() ?
[quoted text clipped - 12 lines]
>
> Rob.
Rob R. Ainscough - 24 Jul 2006 21:59 GMT
thanks, yes I ended up using Applicaiton.Run(myForm) and it works well.
I am also overriding WndProc and I need to determine what message is sent
when an the application is being unistalled via (add remove programs or some
other method).
I have WM_QUERYENDSESSION (&H11) but I don't know what value is sent when
Add/Remove programs is run that I assume tries to terminate the running
app??
Thanks, Rob.
> If you hide a modal dialog, you can't do anything until you re-show it and
> close it. By definition, a modal dialog must be the topmost form in your
[quoted text clipped - 26 lines]
>>
>> Rob.