Autor Beitrag
Kleinohr
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 11.05.10 18:56 
Hallo Zusammen

habe eine Frage bzgl. eines Button. Wie kann man einem Button erstellen, der nur die aktuelle geöffnete Form schließt und nicht wie bei Application.Exit(); das ganze Programm schließt. Danke für Eure Hilfe.
danielf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1012
Erhaltene Danke: 24

Windows XP
C#, Visual Studio
BeitragVerfasst: Di 11.05.10 19:39 
Hallo,

du kannst a) beim Form_Closed Event die Prozedur cancel (siehe Event) oder b) einen Button mit form.Close() / Hide() verknüpfen.

Gruß