Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: A True Global Class? Pin
redfish3415-Nov-05 19:24
redfish3415-Nov-05 19:24 
QuestionCreating forms on different threads Pin
kourvoisier10-Nov-05 19:57
kourvoisier10-Nov-05 19:57 
AnswerRe: Creating forms on different threads Pin
jonny511-Nov-05 0:23
jonny511-Nov-05 0:23 
GeneralRe: Creating forms on different threads Pin
kourvoisier11-Nov-05 3:45
kourvoisier11-Nov-05 3:45 
GeneralRe: Creating forms on different threads Pin
kourvoisier11-Nov-05 8:54
kourvoisier11-Nov-05 8:54 
GeneralRe: Creating forms on different threads Pin
Curtis Schlak.14-Nov-05 4:04
Curtis Schlak.14-Nov-05 4:04 
GeneralRe: Creating forms on different threads EVEN BETTER Pin
Curtis Schlak.14-Nov-05 4:42
Curtis Schlak.14-Nov-05 4:42 
GeneralRe: Creating forms on different threads EVEN BETTER Pin
kourvoisier14-Nov-05 5:16
kourvoisier14-Nov-05 5:16 
Thanks for responding tho i have already come up with a solution very similar to the one you have.
The major difference is that i use sockets instead of tcplisteners(i have learned you can do much more with that class).

I do run into a major problem tho.

Main form created good and i create a new thread specifically to listen for incoming connections
works great.

New connection comes in and i spawn off a new thread for it and create a form perfect.
but when i try to add or write data to that form's text box using form.textbox.text

""""I GET THIS ERROR AGAIN""""
"Invoke or BeginInvoke cannot be called on a control until the window handle has been created."

I use the beginInvoke(new delegate(method), {object [], String s}) to call a method
that changes the textbox to display the message that has been received on the specific connection thread.

I am able to add data to the text box on the main form but not the connection specific form
created on the connection specific thread.

Thanks hopes this all makes since




Kourvoisier
GeneralRe: Creating forms on different threads EVEN BETTER Pin
Curtis Schlak.14-Nov-05 5:51
Curtis Schlak.14-Nov-05 5:51 
GeneralRe: Creating forms on different threads EVEN BETTER Pin
kourvoisier14-Nov-05 12:18
kourvoisier14-Nov-05 12:18 
QuestionSet form's owner to a window outside the application? Pin
MogobuTheFool10-Nov-05 19:45
MogobuTheFool10-Nov-05 19:45 
AnswerRe: Set form's owner to a window outside the application? Pin
Dave Kreskowiak11-Nov-05 3:57
mveDave Kreskowiak11-Nov-05 3:57 
GeneralRe: Set form's owner to a window outside the application? Pin
MogobuTheFool7-Jul-06 8:32
MogobuTheFool7-Jul-06 8:32 
GeneralRe: Set form's owner to a window outside the application? Pin
Dave Kreskowiak7-Jul-06 10:16
mveDave Kreskowiak7-Jul-06 10:16 
GeneralRe: Set form's owner to a window outside the application? Pin
MogobuTheFool8-Jul-06 4:18
MogobuTheFool8-Jul-06 4:18 
Questionsetting the date format of the calendar in a datetimepicker Pin
microsoc10-Nov-05 19:28
microsoc10-Nov-05 19:28 
AnswerRe: setting the date format of the calendar in a datetimepicker Pin
krario10-Nov-05 20:07
krario10-Nov-05 20:07 
GeneralRe: setting the date format of the calendar in a datetimepicker Pin
microsoc10-Nov-05 20:20
microsoc10-Nov-05 20:20 
QuestionStatic and Dynaminc Assemblies ? Pin
webC#10-Nov-05 19:08
webC#10-Nov-05 19:08 
AnswerRe: Static and Dynaminc Assemblies ? Pin
J4amieC10-Nov-05 21:51
J4amieC10-Nov-05 21:51 
QuestionData Encryption in MySql Pin
Prashant Gadhave10-Nov-05 19:06
Prashant Gadhave10-Nov-05 19:06 
QuestionCapture Voice using DirectSound Pin
pakFari10-Nov-05 18:35
pakFari10-Nov-05 18:35 
Questionsql statement problem Pin
ppp00110-Nov-05 18:32
ppp00110-Nov-05 18:32 
AnswerRe: sql statement problem Pin
jonny511-Nov-05 0:31
jonny511-Nov-05 0:31 
Questionwhat is the complete code for downloading a file using FTP through ASP.NET/C# Pin
v.k.s10-Nov-05 17:26
v.k.s10-Nov-05 17: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.