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
///
 
Back
Top