1. problems when a non modal dialog closes, and has an open Modal Dialog
2. Make a modal dialog non-modal
I know this sounds strange, but I have a good reason to do it: I want to open a modal dialog, but in the OnShow event I want to make the dialog non-modal. Can this be done and if so, how? (The reason that I want to do this is that I am using a third party library that provides various GUI controls. If the user double-clicks on this particular control, I open the dialog in question. However, if I open the dialog in a non-modal format, the dialog box ends up behind the original form, not in front of it as it should be. I found that if I open the dialog in a modal format, it is in front).
3. display of modal dialog behind modal dialog
4. labels in non modal dialog boxes
Hello, from inside a button handler, I am launching a dialog box that contains lables and text boxes. The dialog box is launched using dlg.Show(). In this situation the contents of the text boxes are visible but not the contents of the label. They become visible only after the button handler returns. If the dialog box is launched as dlg.ShowDialog() than everything is visible but further execution of the button handler stops (obviously) till the dialog returns. Is there a solution to using dlg.Show() and yet have all the labels display correctly? all help appreciated. thanks LK
5. Updating a TextBox in a Non Modal Windows Form Dialog - CSharp/C#
6. Updating non-modal child dialogs
Dennis, Unless you are dealing with a simple invalidating/redrawing of the dialog (which you would accomplish with Invalidate()/Refresh()/Update()), you would have to define your own accessor methods for the parent window to use. It really depends what exactly you want the dialog to update. Alex "Dennis C. Drumm" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ... > Alex: > > What does the child dialog expose that the parent can use to update it? I > think that is what I'm looking for. > > Thanks, > > Dennis > > > "Alex Bendig" < XXXX@XXXXX.COM > wrote in message > news:besf9c$lke$ XXXX@XXXXX.COM ... > > Dennis, > > > > Well, I suppose there are at least two methods: > > > > 1. The child dialog exposes accessor methods that the parent window can > use > > to cause the updating. > > 2. The parent window lets the child dialog know, when a change occured > > (through an event) and the child dialog can perform the updating. > > > > Hm, I am not entirely sure if this is helpful at all, since I cannot be > > entirely sure, if you defined the problem the way you meant to define it. > > ;-) > > > > Alex > > > > "Dennis C. Drumm" < XXXX@XXXXX.COM > wrote in message > > news:eYAf% XXXX@XXXXX.COM ... > > > I have a situation where a windows form application has a non modal > child > > > dialog. Because it is non modal, the user can make changes at the parent > > > that require changes to the child. Is there a way (using events?) to > cause > > > the child to update? > > > > > > I hope I have explained the situation, I guess I'm not sure exactly how > to > > > even define the problem. > > > > > > Thanks for your comments, > > > > > > Dennis > > > > > > > > > > > >
7. Closing a Non-Modal Dialog - CSharp/C#
8. Problem: Non-modality of modal dialogs
Hi All, I have a dialog-based application in MFC (main window is CDialog1). I have a separate thread (class derived from CWinThread) in the application. The main window (m_pmainWnd) of the thread is a hidden modeless dialog (this is CDialog2). I have created the thread in InitInstance() of my application class using AfxBeginThread (). I PostMessage() to the "hidden modeless dialog" on a button-click of the application dialog. The PostMessage() handler displays a modal dialog (this is CDialog3). Button-click on 'Dialog3' displays another modal dialog (this is CDialog4). Now, in ideal case the user should be able to access only 'Dialog4' because it is displayed using DoModal(). But, I can switch between 'Dialog3' and 'Dialog4' as if both were modeless dialogs!!! Please suggest a solution to this problem. I found the explanation for current behavior by debugging. PreModal() returns handle to the 'Dialog2' as parent for both 'Dialog3' and 'Dialog4'!!! So, there is no relation established between these. That is why switching is possible. If I use all the same code (Display the dialog hierarcy on application thread) without creating a separate thread the dialogs hierarchy works as expected. Regards, Yadnesh Phadke, Software Engineer, Pune, India