Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serializing the Forms Pin
Heath Stewart20-Dec-04 21:34
protectorHeath Stewart20-Dec-04 21:34 
GeneralDataGrid DoublClick dos'nt Response Pin
Wail A.Salem20-Dec-04 10:21
Wail A.Salem20-Dec-04 10:21 
GeneralRe: DataGrid DoublClick dos'nt Response Pin
Jay Shankar20-Dec-04 17:20
Jay Shankar20-Dec-04 17:20 
Generalwmi query related Pin
sujithapril20-Dec-04 8:53
sujithapril20-Dec-04 8:53 
GeneralRe: wmi query related Pin
Nick Parker20-Dec-04 10:06
protectorNick Parker20-Dec-04 10:06 
GeneralRe: wmi query related Pin
sujithapril20-Dec-04 10:57
sujithapril20-Dec-04 10:57 
Generali needwmi Pin
sujithapril20-Dec-04 8:46
sujithapril20-Dec-04 8:46 
QuestionHow to start a form from another thread Pin
SebbaP20-Dec-04 8:12
SebbaP20-Dec-04 8:12 
Hi,

I am writing a forms based application, which has been working fine, until I moved my project to another computer with the same version of Visual studio. Now my initial form does not show up at all.

This is what I have done:

I have a console application that starts three forms, one after the other. Each form implements two methods invloved in starting the form in its own separate thread.

class UIForm : ....
{
Thread formThread = null;

public void OpenForm()
{
// formThread is a private member of the current form
formThread = new Thread( new ThreadStart( this.ShowForm ) );
formThread.Start();
}

private void ShowForm()
{
Application.Run( this );
}
.
.
.
}

The console application then starts the form like this:

UIForm theForm = new UIForm();
theForm.OpenForm();


This worked fine until I moved my project to another machine.
Any help, comments or advise is much appreciated!!

Thanks!

AnswerRe: How to start a form from another thread Pin
Michael Potter20-Dec-04 9:29
Michael Potter20-Dec-04 9:29 
GeneralRe: How to start a form from another thread Pin
SebbaP20-Dec-04 10:33
SebbaP20-Dec-04 10:33 
GeneralRe: How to start a form from another thread Pin
Michael Potter20-Dec-04 11:11
Michael Potter20-Dec-04 11:11 
GeneralRe: How to start a form from another thread Pin
SebbaP20-Dec-04 20:59
SebbaP20-Dec-04 20:59 
GeneralProblem getting array out of arraylist Pin
sciamachy20-Dec-04 6:20
sciamachy20-Dec-04 6:20 
GeneralRe: Problem getting array out of arraylist Pin
Heath Stewart20-Dec-04 6:33
protectorHeath Stewart20-Dec-04 6:33 
GeneralRe: Problem getting array out of arraylist Pin
CoolDadTx21-Dec-04 4:11
CoolDadTx21-Dec-04 4:11 
GeneralStreams and Unmanaged code Pin
Tristan Rhodes20-Dec-04 5:44
Tristan Rhodes20-Dec-04 5:44 
GeneralRe: Streams and Unmanaged code Pin
Heath Stewart20-Dec-04 6:38
protectorHeath Stewart20-Dec-04 6:38 
GeneralNativeWindow disposing on WM_DESTROY Pin
stefan houtz20-Dec-04 0:53
stefan houtz20-Dec-04 0:53 
GeneralRe: NativeWindow disposing on WM_DESTROY Pin
Heath Stewart20-Dec-04 5:57
protectorHeath Stewart20-Dec-04 5:57 
GeneralRe: NativeWindow disposing on WM_DESTROY Pin
stefan houtz21-Dec-04 1:05
stefan houtz21-Dec-04 1:05 
GeneralRe: NativeWindow disposing on WM_DESTROY Pin
Heath Stewart21-Dec-04 7:55
protectorHeath Stewart21-Dec-04 7:55 
GeneralRe: NativeWindow disposing on WM_DESTROY Pin
stefan houtz22-Dec-04 2:52
stefan houtz22-Dec-04 2:52 
GeneralRe: NativeWindow disposing on WM_DESTROY Pin
Heath Stewart22-Dec-04 6:38
protectorHeath Stewart22-Dec-04 6:38 
GeneralRe: NativeWindow disposing on WM_DESTROY Pin
stefan houtz27-Dec-04 6:01
stefan houtz27-Dec-04 6:01 
GeneralDataTable.ColumnChanged doesn't rais an event after ReadXml() Pin
Dogan Gunay20-Dec-04 0:05
Dogan Gunay20-Dec-04 0:05 

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.