Click here to Skip to main content
15,900,482 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionCreating an interface UI in windows forms Pin
for120625-Feb-10 7:23
for120625-Feb-10 7:23 
AnswerRe: Creating an interface UI in windows forms Pin
RichardM125-Feb-10 12:40
RichardM125-Feb-10 12:40 
AnswerRe: Creating an interface UI in windows forms Pin
BoomRShine26-Feb-10 4:03
BoomRShine26-Feb-10 4:03 
Question.NET WinForms Control as a child to a Window residing in a different process (MIXED RESULTS) [modified] Pin
mcrawley23-Feb-10 10:47
mcrawley23-Feb-10 10:47 
AnswerRe: .NET WinForms Control as a child to a Window residing in a different process (MIXED RESULTS) Pin
RichardM123-Feb-10 18:51
RichardM123-Feb-10 18:51 
GeneralRe: .NET WinForms Control as a child to a Window residing in a different process (MIXED RESULTS) Pin
mcrawley25-Feb-10 9:40
mcrawley25-Feb-10 9:40 
GeneralRe: .NET WinForms Control as a child to a Window residing in a different process (MIXED RESULTS) Pin
RichardM125-Feb-10 10:13
RichardM125-Feb-10 10:13 
GeneralRe: .NET WinForms Control as a child to a Window residing in a different process (MIXED RESULTS) Pin
mcrawley25-Feb-10 12:08
mcrawley25-Feb-10 12:08 
The only thing special about the UserControl1 class is that I changed the background color. I could have used the UserControl class directly and set the background color. It makes no difference. In several test cases, I even added several buttons and other controls onto my derived UserControl1 class. It still works fine as a child to a Win32 or .NET WinForm in a separate process. I have learned that when ever a window (or control in .NET terms) posts a message via PostMessage(..), the active thread just adds the message to the destination's message queue and returns immediately, not waiting for the message to be processed. Had I posted a message via SendMessage(..), the active thread would suspend until the message is processed. My guess is that some of the .NET controls (like the Button control) uses SendMessage(..) somewhere internally and waits for it's child/parent to process, perhaps creating even a deadlock somewhere in worse cases. I have found articles and forums suggesting the CLR might be disposing a handle to GDI objects a the point where the exception is thrown in the internal paint procedure or the GDI handle count is exceeded. Eitherway, I am puzzled. I have found articles and code showing multithreaded windowed applications to work fine, but most developers usually have no need for such and never investigate.
GeneralRe: .NET WinForms Control as a child to a Window residing in a different process (MIXED RESULTS) Pin
RichardM125-Feb-10 12:34
RichardM125-Feb-10 12:34 
Questiondesktop application Pin
mylogics22-Feb-10 19:34
professionalmylogics22-Feb-10 19:34 
AnswerRe: desktop application Pin
Andy_L_J22-Feb-10 20:06
Andy_L_J22-Feb-10 20:06 
AnswerRe: desktop application Pin
BoomRShine23-Feb-10 3:53
BoomRShine23-Feb-10 3:53 
AnswerRe: desktop application Pin
Abhinav S26-Feb-10 22:27
Abhinav S26-Feb-10 22:27 
GeneralRe: desktop application Pin
mylogics26-Feb-10 22:33
professionalmylogics26-Feb-10 22:33 
QuestionComboBox trouble. Pin
Nikz222-Feb-10 6:51
Nikz222-Feb-10 6:51 
AnswerRe: ComboBox trouble. Pin
Richard MacCutchan22-Feb-10 22:28
mveRichard MacCutchan22-Feb-10 22:28 
QuestionConnecting to Active Directory Pin
John.L.Ponratnam21-Feb-10 20:16
John.L.Ponratnam21-Feb-10 20:16 
QuestionHow to attach the Smart Tags of child controls, to the user control? Pin
Vahid Rassouli21-Feb-10 9:22
Vahid Rassouli21-Feb-10 9:22 
QuestionRole of IIS / Worker process in a desktop or windows application (Distributed remoting architecture) [modified] Pin
NetQuestions18-Feb-10 19:18
NetQuestions18-Feb-10 19:18 
AnswerRe: Role of IIS / Worker process in a desktop or windows application (Distributed remoting architecture) Pin
NetQuestions18-Feb-10 23:24
NetQuestions18-Feb-10 23:24 
AnswerRe: Role of IIS / Worker process in a desktop or windows application (Distributed remoting architecture) Pin
Dave Kreskowiak22-Feb-10 3:09
mveDave Kreskowiak22-Feb-10 3:09 
GeneralRe: Role of IIS / Worker process in a desktop or windows application (Distributed remoting architecture) Pin
NetQuestions24-Feb-10 17:37
NetQuestions24-Feb-10 17:37 
QuestionAdvanced ComboBox in WinForms Pin
Nick Alexeev12-Feb-10 16:41
professionalNick Alexeev12-Feb-10 16:41 
AnswerRe: Advanced ComboBox in WinForms Pin
Richard MacCutchan12-Feb-10 22:40
mveRichard MacCutchan12-Feb-10 22:40 
AnswerRe: Advanced ComboBox in WinForms Pin
Luc Pattyn13-Feb-10 1:39
sitebuilderLuc Pattyn13-Feb-10 1:39 

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.