Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close Form in Load
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01011660
Message ID:
01011791
Views:
11
Hi Bonnie,

Sorry to jump in like this. Is there a specific reason for Minimizing the form before the application exit?


>David,
>
>As I said in my previous reply, you need to use Application.Exit(). So, something like this in your Form's Load eventhandler:
>
>if (ConnectionIsOffline)
>{
>    MessageBox.Show("You are offline. Application will be closed.");
>    this.WindowState = FormWindowState.Minimized;
>    Application.Exit();
>    return;
>}
>
>
Bonnie
>
>
>
>>Hello Bonnie...
>>
>>I in event LOAD verify if the connection with the server this ON LINE; if the server this OFF LINE I show a message and i want to close the form.
>>
>>Note: my english is not very good..
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform