Autor Beitrag
CASS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 24.09.05 14:06 
So Leute,

ich hab mir jetzt auch mal das Beta 2 von Visual Studio 2005 Express geholt (C#). Sieht wirklich toll aus. Allerdings hab ich von C# noch null Ahnung. Hat einer von euch ne Adresse von Tutorials?

Meine Eigentliche Frage:
Wenn ich einfach ein Form erstelle Name: Form1. In diesem einen Button einfüge, und in dem Button als Event Form1.Close schreibe, dann klappt das nicht. Wie kann ich z. B. das Fenster schliessen?

Gruß an Alle
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6386
Erhaltene Danke: 146

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Sa 24.09.05 14:14 
user profile iconCASS hat folgendes geschrieben:
Wenn ich einfach ein Form erstelle Name: Form1. In diesem einen Button einfüge, und in dem Button als Event Form1.Close schreibe, dann klappt das nicht. Wie kann ich z. B. das Fenster schliessen?

Was heißt, "dann klappt das nicht" denn genau?
Wenn du wirklich alles so gemacht hast, wie beschrieben und Form1 auch deine Haupt-Form ist, müsste sich sogar die ganze Anwendung schließen.
CASS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 24.09.05 14:27 
Bei mir erscheint die Fehlermeldung:
Zitat:
Only assignment, call, increment, decrement, and new object expressions can be used as statement.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6386
Erhaltene Danke: 146

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Sa 24.09.05 14:36 
Sorry hatte übersehen, dass es um eine WinForm geht.
Du darfst nur Close schreiben und nicht Form1.Close.
CASS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 24.09.05 14:45 
Merci, klappt!

Noch ne Frage, kann ich bei Visual Studio 2005 sowie bei Delphi weitere Komponenten runterladen und installieren?
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Sa 24.09.05 15:03 
Neue Frage -> Neues Topic, danke! :)

_________________
JSXGraph