Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close Form in Load
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01011660
Message ID:
01011791
Vues:
12
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

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform