Autor Beitrag
dinazavric
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75



BeitragVerfasst: Di 14.06.11 10:28 
Hallo,

ich möchte eine Warning-Form erstellen, die mir für Benutzer relevante Informationen anzeigt. Dafür muss ich bestimmte Werte aus meinem Hauptprogramm in die Warning-Form bspw. als Text übergeben. Wie mache ich das?

Danke,
Dina
thepaine91
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 14.06.11 10:37 
dinazavric Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75



BeitragVerfasst: Di 14.06.11 10:52 
da ist alles für Delphi...
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 14.06.11 11:09 
Hallo!

Deine Form ist ja auch einfach nur eine neue Klasse (abgeleitet von der normalen Form-Klasse). Der Klasse kannst Du einen zusätzlichen Konstruktor verpassen (den normalen Konstruktor drin lassen, den braucht der Formdesigner von Visual Studio!), dem Du die Texte dann als Parameter übergibst. Im Konstrktor nicht vergessen, den Ursprungskonstruktor aufzurufen.

Oder Du verpasst der Warning-Form-Klasse neue Eigenschaften, die Du setzen kannst, bevor Du sie anzeigst.

Grüße,
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
thepaine91
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 763
Erhaltene Danke: 27

Win XP, Windows 7, (Linux)
D6, D2010, C#, PHP, Java(Android), HTML/Js
BeitragVerfasst: Di 14.06.11 11:16 
dinazavric Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 75



BeitragVerfasst: Di 14.06.11 11:57 
Vielen Dank! Werde ich mir anschuen