Click here to Skip to main content
15,907,395 members
Home / Discussions / C#
   

C#

 
QuestionOpen file for jus reading Pin
keroed_edmond17-Jun-06 14:58
keroed_edmond17-Jun-06 14:58 
AnswerRe: Open file for jus reading Pin
Robert Rohde17-Jun-06 15:23
Robert Rohde17-Jun-06 15:23 
GeneralRe: Open file for jus reading Pin
keroed_edmond17-Jun-06 19:49
keroed_edmond17-Jun-06 19:49 
QuestionRegarding 70-536 & 70-528 Pin
student_rhr17-Jun-06 14:52
student_rhr17-Jun-06 14:52 
AnswerRe: Regarding 70-536 & 70-528 Pin
Steve Maier17-Jun-06 17:08
professionalSteve Maier17-Jun-06 17:08 
QuestiondataGridView - Select cell on right click Pin
shultas17-Jun-06 14:13
shultas17-Jun-06 14:13 
Question[Message Deleted] Pin
WCup17-Jun-06 13:22
WCup17-Jun-06 13:22 
AnswerRe: How to avoid :not all code paths return a value Pin
TheBeginner7717-Jun-06 13:37
TheBeginner7717-Jun-06 13:37 
AnswerRe: How to avoid :not all code paths return a value Pin
Christian Graus17-Jun-06 13:38
protectorChristian Graus17-Jun-06 13:38 
AnswerRe: [Message Deleted] Pin
Colin Angus Mackay17-Jun-06 23:02
Colin Angus Mackay17-Jun-06 23:02 
GeneralRe: [Message Deleted] Pin
Malcolm Smart18-Jun-06 0:15
Malcolm Smart18-Jun-06 0:15 
QuestionHow can i add strings to the columns of a dataGridView? [modified]....pls if someone knows.... Pin
TheBeginner7717-Jun-06 11:45
TheBeginner7717-Jun-06 11:45 
QuestionRe: How can i add strings to the columns of a dataGridView? [modified]....pls if someone knows.... Pin
TheBeginner7717-Jun-06 13:52
TheBeginner7717-Jun-06 13:52 
QuestionDelegate / Event Behaviour [modified] Pin
Malcolm Smart17-Jun-06 9:55
Malcolm Smart17-Jun-06 9:55 
QuestionRe: Delegate / Event Behaviour Pin
Jun Du17-Jun-06 10:55
Jun Du17-Jun-06 10:55 
AnswerRe: Delegate / Event Behaviour Pin
Malcolm Smart17-Jun-06 11:19
Malcolm Smart17-Jun-06 11:19 
AnswerRe: Delegate / Event Behaviour Pin
Robert Rohde17-Jun-06 11:00
Robert Rohde17-Jun-06 11:00 
GeneralRe: Delegate / Event Behaviour Pin
Malcolm Smart17-Jun-06 11:16
Malcolm Smart17-Jun-06 11:16 
GeneralRe: Delegate / Event Behaviour Pin
Malcolm Smart17-Jun-06 11:59
Malcolm Smart17-Jun-06 11:59 
GeneralRe: Delegate / Event Behaviour Pin
Robert Rohde17-Jun-06 13:29
Robert Rohde17-Jun-06 13:29 
GeneralRe: Delegate / Event Behaviour Pin
Malcolm Smart17-Jun-06 20:46
Malcolm Smart17-Jun-06 20:46 
AnswerRe: Delegate / Event Behaviour Pin
LongRange.Shooter17-Jun-06 18:15
LongRange.Shooter17-Jun-06 18:15 
The problem is probably coming from the fact that the socket request is from a remote system and you cannot do a Show() across that boundary remote boundary. ( The exact same behaviour occurs if you setup a remote agent and call a method remotely that would show a form. )

Basically what you have to do is marshal the assembly across the boundaries so that the form is on the local machine and have the caller issue a CreateInstance and call Show() for this to work.

The reason it does not work is that your Show() opens up a message pump on your machine, the empty form opens up on the remote machine, the message pump on the remote machine issues an Activate only there is nothing on the remote machine listening for it on the message pump. Meanwhile your message pump is sitting there getting bored because it is not recieving any messages.

To start research on what it would take to make it work, read about MarshalByRefObject and then think about the impact of shipping Windows Forms all over the network when doing this.
GeneralRe: Delegate / Event Behaviour Pin
Malcolm Smart17-Jun-06 20:48
Malcolm Smart17-Jun-06 20:48 
QuestionADO.NET - Inserting a row and getting the ID Pin
AJ12317-Jun-06 9:44
AJ12317-Jun-06 9:44 
AnswerRe: ADO.NET - Inserting a row and getting the ID Pin
LongRange.Shooter17-Jun-06 18:17
LongRange.Shooter17-Jun-06 18:17 

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.