Autor Beitrag
BlackMatrix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 243
Erhaltene Danke: 1



BeitragVerfasst: Mi 22.09.10 13:50 
Hi.

Ich habe mich bisher so gut wie gar nicht mit Windows Forms beschäftigt.

Ich möchte gerne, dass mein Konsolenprogramm, welches mehrere Threads startet von denen jeder eine Windows Forms öffnet, auf dem eine Picturebox und eine Texteingabe vorhanden ist.

Also habe ich die Picturebox public gemacht und vom Thread aus, das Bild in der Picturebox festgelegt.

Nun soll mein Thread anhalten, wenn er ein neue Windows Form geöffnet hat und soll solange warten, bis ich in der Texteingabe Enter gedrückt habe und das war mir nicht ganz klar, wie das funktioniert.

MfG BlackMatrix
Necaremus
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 203
Erhaltene Danke: 18

Win > XP, Vista, 7; Android 2.1
C# > VS '08,'10; Delphi7
BeitragVerfasst: Mi 22.09.10 14:19 
do {/*nothing*/while (waiting);?
setzt dein boolean "waiting" auf true, starte das prog, und wenn dort dann deine bedingung erfüllt ist, setzt du dein bool auf false.

oder wie meinst du das nun?
Greenberet
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 339
Erhaltene Danke: 20

Win 10
C# (VS 2012), C++ (VS 2012/GCC), PAWN(Notepad++), Java(NetBeans)
BeitragVerfasst: Mi 22.09.10 16:28 
öffne doch einfach die Form mit ShowDialog
BlackMatrix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 243
Erhaltene Danke: 1



BeitragVerfasst: Sa 25.09.10 12:24 
Danke, ich habs :]