Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
GeneralBinary Resource Pin
Chernobog_29-May-04 2:43
Chernobog_29-May-04 2:43 
GeneralA question about move PictureBox Pin
Member 94012528-May-04 21:39
Member 94012528-May-04 21:39 
GeneralRe: A question about move PictureBox Pin
Aaron Eldreth29-May-04 3:01
Aaron Eldreth29-May-04 3:01 
GeneralRe: A question about move PictureBox Pin
MeterMan29-May-04 14:08
MeterMan29-May-04 14:08 
GeneralRe: A question about move PictureBox Pin
Member 94012529-May-04 23:58
Member 94012529-May-04 23:58 
Generaldatareader in asp.net using c# Pin
HowRU28-May-04 19:36
HowRU28-May-04 19:36 
GeneralRe: datareader in asp.net using c# Pin
Mazdak28-May-04 20:05
Mazdak28-May-04 20:05 
GeneralRe: datareader in asp.net using c# Pin
Dave Kreskowiak29-May-04 14:35
mveDave Kreskowiak29-May-04 14:35 
QuestionHow to decide if a Point is on a curve Pin
TaoLi28-May-04 16:38
TaoLi28-May-04 16:38 
AnswerRe: How to decide if a Point is on a curve Pin
Nathan Blomquist28-May-04 17:22
Nathan Blomquist28-May-04 17:22 
GeneralRe: How to decide if a Point is on a curve Pin
TaoLi29-May-04 16:13
TaoLi29-May-04 16:13 
GeneralRe: How to decide if a Point is on a curve Pin
TaoLi29-May-04 17:39
TaoLi29-May-04 17:39 
GeneralRe: How to decide if a Point is on a curve Pin
Nathan Blomquist30-May-04 4:11
Nathan Blomquist30-May-04 4:11 
GeneralRe: How to decide if a Point is on a curve Pin
adelboy11-May-09 8:27
adelboy11-May-09 8:27 
QuestionMultiple Sockets On A Single Port? Pin
XanderSon28-May-04 15:05
XanderSon28-May-04 15:05 
AnswerRe: Multiple Sockets On A Single Port? Pin
valikac28-May-04 19:59
valikac28-May-04 19:59 
GeneralMulti-Form and Multi Thread Question Pin
Jeff Monheiser28-May-04 13:46
Jeff Monheiser28-May-04 13:46 
First off, sorry for the long question but I wnat to try and be clear. Any ways I have the following code:

static void Main()
{
Application.Run(new Form1());
}

Here is the constructor for Form1

public Form1()
{
// Form 1 Control definitions removed

newClass1= new NewClass();
newClass2= new NewClass();

Thread Thread1=new Thread(new ThreadStart(newClass1.Start));
Thread Thread2=new Thread(new ThreadStart(newClass2.Start));

Thread1.Start();
Thread2.Start();
}


Here is the New Class Constructor:

Public NewClass()
{
Context=new ApplicationContext();
Form2 ChildForm1=new Form2();
Form2 ChildForm2=new Form2();

Context.MainWindow=ChildForm2;
}

Here is the thread Start delegate:

public void Start
{
Application.Run(Context);
}

If a method on Form 1 wants to call a method on the instance ChildForm1 an Invoke call must be used and it works. However if a call on Form1 wants to call a method on ChildForm2 the InvokeRequired property always shows false and an Invoke call won't work. Why??

Thanks for an help

Jeff

GeneralSystem.Windows.Forms.TreeView Question Pin
bneacetp28-May-04 12:53
bneacetp28-May-04 12:53 
GeneralRe: System.Windows.Forms.TreeView Question Pin
Aaron Eldreth28-May-04 15:49
Aaron Eldreth28-May-04 15:49 
GeneralRe: System.Windows.Forms.TreeView Question Pin
bneacetp28-May-04 20:33
bneacetp28-May-04 20:33 
GeneralRe: System.Windows.Forms.TreeView Question Pin
Aaron Eldreth29-May-04 2:49
Aaron Eldreth29-May-04 2:49 
GeneralRe: System.Windows.Forms.TreeView Question Pin
bneacetp29-May-04 15:52
bneacetp29-May-04 15:52 
GeneralTwo Important and Urgent questions Pin
Den2Fly28-May-04 12:15
Den2Fly28-May-04 12:15 
GeneralRe: Two Important and Urgent questions Pin
Colin Angus Mackay28-May-04 14:05
Colin Angus Mackay28-May-04 14:05 
GeneralRe: Two Important and Urgent questions Pin
Den2Fly29-May-04 7:26
Den2Fly29-May-04 7:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.