Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 10:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# FormClosing Event

Discussion on C# FormClosing Event within the .NET Languages forum part of the Coders Den category.

Closed Thread
 
Old   #1

 
Nanoxx™'s Avatar
 
elite*gold: 15
Join Date: Feb 2013
Posts: 2,880
Received Thanks: 465
C# FormClosing Event

Moin,


Ich habe versucht per "FormClosing" Event ListView zu Speichern...

Leider Funktioniert das nicht -> Es passiert einfach nichts (keine Datei, kein text)


Was gibts da zu beachten? (Benutze VS 2015PRE)
Nanoxx™ is offline  
Old 06/02/2015, 20:30   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Dein dazugehörigen Code zu posten wäre eventuell hilfreich.
Kraizy​ is offline  
Old 06/02/2015, 20:37   #3

 
Nanoxx™'s Avatar
 
elite*gold: 15
Join Date: Feb 2013
Posts: 2,880
Received Thanks: 465
Datei Speichern:
PHP Code:
System.IO.StreamWriter SaveFile = new System.IO.StreamWriter("Zeugs.txt");
foreach (
ListViewItem item in FileList.Items)
{
SaveFile.Write(item.Text ";" Environment.NewLine);
                
}
SaveFile.Close(); 
Das Funktioniert wenn ich es per button aufrufe....


-> Im FormClosing Event geht es nicht... kein Fehler, keine datei

#Falsches Event.... Erst nochmal lesen und dann hier Fragen

Danke trotzdem

#Closerequest
Nanoxx™ is offline  
Closed Thread


Similar Threads Similar Threads
[Introducing Event (CBT Homepage Open Event)] Digimon masters online in English
08/05/2011 - Main - 0 Replies
digimon masters online is at last in english the closed beta is going to be out next 9th august 8/9/2011 i wish all could join thank you all for viewing :):)



All times are GMT +1. The time now is 10:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.