"alex9128" <(E-Mail Removed)> schrieb:
> I mean if you writing Sub Main in VB you can start you application either
> way:
>
> Dim mainfrm As Form1 = New Form1()
> mainfrm.ShowDialog()
>
> or just
>
> Application.Run(New Form1())
>
> What is advantage of each way?
In this particular situation 'Application.Run' is semantically correct, but
'ShowDialog' isn't, because the form should not be shown as a dialog.
> And how to count how many times user started
> application and let do it only once?
<URL:http://www.yoda.arachsys.com/csharp/faq/#one.application.instance>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
|