By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

FORM.show problem

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Roedd <<Tom>> wedi ysgrifennu:
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.
Nov 21 '05 #2

P: n/a
"Tom" <pc***@tomgroup.com> schrieb:
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
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.