Autor Beitrag
Ice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Mi 26.03.03 12:33 
Hallo Leute,

ich habe folgendes Problem:

Ich möchte eine Form anzeigen lassen dann in der ersten Form einige Befehle abarbeiten und wenn diese Befehle abgearbeitet sind soll die Form wieder verschwinden.

Wie könnte ich das anstellen so das auch alle Komponenten auf der zweiten Form richtig angezeigt werden ?
Vielen Dank im voraus ...

mfg
Ice
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 26.03.03 12:43 
Also, hier mal ein unglaublich sinnvoller Code: :wink:
ausblenden Quelltext
1:
2:
3:
4:
5:
Form2.Show;
Application.ProcessMessages; //<--- den brauchst Du!
for m:=0 TO 999 DO
for i:=0 TO 999999 DO k:=i*i;
Form2.Close;


MfG,
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Ice Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Mi 26.03.03 13:39 
:D Alles klar. Läuft super!

Vielen Dank!

mfg
Ice
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mi 26.03.03 14:14 
Peter Lustig hat folgendes geschrieben:
Also, hier mal ein unglaublich sinnvoller Code: :wink:
ausblenden Quelltext
1:
2:
3:
4:
5:
Form2.Show;
Application.ProcessMessages; //<--- den brauchst Du!
for m:=0 TO 999 DO
for i:=0 TO 999999 DO k:=i*i;
Form2.Close;


MfG,
Peter
Alternativ sollte es auch mitComponent.Refresh;gehen!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Ice Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Do 27.03.03 08:12 
:D Vielen Dank!
mfg
Ice