Questions sur this.hide() et this.close()
Bonjour,
Je suis débutant c# et je ne comprends pas pourquoi quand je fais un this.hide ou un this.close dans ma Form1_Load ça ne fonctionne pas, alors que en VB.Net quand je faisais un me.hide ou un me.close cela fonctionnait
Pourriez m'expliquer ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
private void Form1_Load(object sender, EventArgs e)
{
this.hide;
string parameters;
string sourcePath = ConfigurationManager.AppSettings["source"];
string targetPath = ConfigurationManager.AppSettings["target"];
MessageBox.Show("Status: Program is started.");
this.close();
} |
Je voudrais lancer mon formulaire en invisible et le fermer une fois son traitement fini.
D'avance merci pour votre aide