"alex9128" <alex9128@hotmail.com> schrieb:
> I mean if you writing Sub Main in VB you can start you application either
> way:
[quoted text clipped - 7 lines]
>
> 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>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
hB - 10 Aug 2005 23:25 GMT
Dialog is model window other is modless.
if there are more than one gui forms/windows then it would effect.
"What is advantage of each way? And how to count how many times user
started application"
Perhaps on Application.Exit and Start of app, manipulate this
information in some text file.
---
hB