FORM.show problem

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi All :

When I create windows application and started at sub main() and then I
create module1
why after run mainform.Show() and disappear and exit code. how can prevent
it?

Thanks

Module Module1

Private mainform As mdiform
Sub Main()
mainform = New mdiform
mainform.Show()
End Sub
End Module
 
Roedd said:
When I create windows application and started at sub main() and then I
create module1
why after run mainform.Show() and disappear and exit code. how can
prevent it?

Thanks

Module Module1

Private mainform As mdiform
Sub Main()
mainform = New mdiform
mainform.Show()
End Sub
End Module

Use ShowDialog()

--
Rob

http://www.asta51.dsl.pipex.com/webcam/

This message is copyright Robert Bruce and intended
for distribution only via NNTP.
Dissemination via third party Web forums with the
exception of Google Groups and Microsoft Communities
is strictly prohibited and may result in legal action.
 
Tom said:
When I create windows application and started at sub main() and then I
create module1
why after run mainform.Show() and disappear and exit code. how can
prevent
it?

Thanks

Module Module1

Private mainform As mdiform
Sub Main()
mainform = New mdiform
mainform.Show()
End Sub
End Module

\\\
Public Sub Main()
Application.Run(New MainForm())
End Sub
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top