Click here to Skip to main content
15,924,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: logically linked array Pin
mav.northwind4-Mar-05 21:45
mav.northwind4-Mar-05 21:45 
GeneralRe: logically linked array Pin
Dave Kreskowiak5-Mar-05 9:45
mveDave Kreskowiak5-Mar-05 9:45 
GeneralToggle switch Pin
Anonymous4-Mar-05 18:52
Anonymous4-Mar-05 18:52 
GeneralRe: Toggle switch Pin
Yulianto.4-Mar-05 20:05
Yulianto.4-Mar-05 20:05 
GeneralRe: Toggle switch Pin
leppie4-Mar-05 23:22
leppie4-Mar-05 23:22 
GeneralCollection property Pin
Anonymous4-Mar-05 18:50
Anonymous4-Mar-05 18:50 
GeneralRe: Collection property Pin
Guinness4Strength5-Mar-05 8:28
Guinness4Strength5-Mar-05 8:28 
GeneralMDI Parent/Child Form Problem... Pin
new_phoenix4-Mar-05 16:05
new_phoenix4-Mar-05 16:05 
OK. I was able to set the Form1.isMDIContainer property to true on the main form to prevent an exception from being thrown when showing a child form. Than I created a MDIChild form triggered by a menu item as the article from Microsoft says at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconMDIApplications.asp but I encountered a problem.

First, when the Form.isMDIContainer property of the main form is set to true, it causes the background property of the form to only show a system color rather than the color that I would like the main form to display. This is explicitly stated in the article link above from Microsoft. Therefore, I thought that I could put a panel on the main form to display the color that I selected for the main form, but now when the MDIChild form is displayed it is displayed BEHIND the panel that was added to the main form.

How do I get the MDIChild form to display IN FRONT OF the panel rather than behind the panel. I tried to set the code in a menu item like so but it did not work.

<br />
formChild frm = new frmChild();<br />
frm.MDIParent = this;<br />
frm.Show();<br />


The MDIChild form shows behind the panel. I had tried to change the code to frm.MDIParent = panelMain but it would not assign a panel to a form. I find it very hard to believe that I am forced to choose either between a gray background (system color) OR the possibility of MDI form functionality.

I would appreciate some additional input from an MDI expert who has done some sort of a work-around solution. The color that I want to use for the background color of the main form is simply not in the list of system colors. Need your assistance to either bring the MDIChild form in front of the panel or to change the color permitted for the parent form from a system color. Tried to set the MDIChild form TopMost property to true but that did not work either. Any suggestions? Confused | :confused: Confused | :confused: Confused | :confused:
GeneralRe: MDI Parent/Child Form Problem... Pin
Dave Kreskowiak4-Mar-05 16:28
mveDave Kreskowiak4-Mar-05 16:28 
GeneralRe: MDI Parent/Child Form Problem... Pin
new_phoenix5-Mar-05 7:49
new_phoenix5-Mar-05 7:49 
GeneralRe: MDI Parent/Child Form Problem... Pin
Dave Kreskowiak5-Mar-05 17:25
mveDave Kreskowiak5-Mar-05 17:25 
QuestionFiring an event for a button within a datalist? Pin
oceanexplorer4-Mar-05 13:17
oceanexplorer4-Mar-05 13:17 
AnswerRe: Firing an event for a button within a datalist? Pin
Rob Graham4-Mar-05 15:07
Rob Graham4-Mar-05 15:07 
QuestionExporting S.D.Graphics to file? Pin
zaubara4-Mar-05 12:45
zaubara4-Mar-05 12:45 
AnswerRe: Exporting S.D.Graphics to file? Pin
Rob Graham4-Mar-05 15:02
Rob Graham4-Mar-05 15:02 
AnswerRe: Exporting S.D.Graphics to file? Pin
Robert Rohde4-Mar-05 22:54
Robert Rohde4-Mar-05 22:54 
GeneralRe: Exporting S.D.Graphics to file? Pin
zaubara5-Mar-05 5:44
zaubara5-Mar-05 5:44 
GeneralRe: Exporting S.D.Graphics to file? Pin
Robert Rohde5-Mar-05 6:56
Robert Rohde5-Mar-05 6:56 
GeneralRe: Exporting S.D.Graphics to file? Pin
zaubara5-Mar-05 7:10
zaubara5-Mar-05 7:10 
GeneralText alignment Pin
gmeii4-Mar-05 10:33
gmeii4-Mar-05 10:33 
GeneralRe: Text alignment Pin
mav.northwind4-Mar-05 21:48
mav.northwind4-Mar-05 21:48 
Generaldatatable.datarowcollection Pin
(Steven Hicks)n+14-Mar-05 10:28
(Steven Hicks)n+14-Mar-05 10:28 
GeneralRe: datatable.datarowcollection Pin
turbochimp4-Mar-05 10:59
turbochimp4-Mar-05 10:59 
GeneralA silly socket question Pin
sameerhanda4-Mar-05 10:14
sameerhanda4-Mar-05 10:14 
GeneralRe: A silly socket question Pin
S. Senthil Kumar4-Mar-05 11:17
S. Senthil Kumar4-Mar-05 11: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.