Autor Beitrag
yndaso
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 108



BeitragVerfasst: Mo 16.03.09 18:51 
Hallo,

ich rufe in meinem Programm ein zweites Form auf.
Habe im Projektmappenexplorer Komponente hinzufügen -> Windows Form gemacht.

In meinem Hauptprogramm rufe ich dieses Form nun so auf:

ausblenden C#-Quelltext
1:
2:
            Submit _newSubmit = new Submit();
            _newSubmit.ShowDialog();


Anschließend erscheint das Form.

Wie kann ich das ganze nun erweitern, um Übergabewerte zu übermitteln?
Sprich ich will beim Aufruf einen String (evtl. auch int) übergeben und möchte beim schließen
des Forms einen Rückgabewert (int) erhalten

Kann mir hier jemand helfen?

Danke
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Mo 16.03.09 20:42 
Das Thema wird dauernd angesprochen. Bitte benutze die Forumssuche, z.B. mit "Kommunikation Forms" oder "Werte Forms übergeben" u.ä. Jürgen