Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Two Important and Urgent questions Pin
Dave Kreskowiak29-May-04 14:27
mveDave Kreskowiak29-May-04 14:27 
GeneralRe: Two Important and Urgent questions Pin
Dave Kreskowiak29-May-04 14:30
mveDave Kreskowiak29-May-04 14:30 
GeneralWorking with System.Windows.Forms.RichTextBox Pin
bneacetp28-May-04 10:32
bneacetp28-May-04 10:32 
GeneralRe: Working with System.Windows.Forms.RichTextBox Pin
Dave Kreskowiak28-May-04 10:46
mveDave Kreskowiak28-May-04 10:46 
GeneralRe: Working with System.Windows.Forms.RichTextBox Pin
bneacetp28-May-04 11:03
bneacetp28-May-04 11:03 
Generalimplicit operators Pin
wickerman.2628-May-04 9:06
wickerman.2628-May-04 9:06 
GeneralRe: implicit operators Pin
leppie28-May-04 11:02
leppie28-May-04 11:02 
GeneralRe: implicit operators Pin
wickerman.261-Jun-04 6:15
wickerman.261-Jun-04 6:15 
GeneralRe: implicit operators Pin
Colin Angus Mackay28-May-04 11:20
Colin Angus Mackay28-May-04 11:20 

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.