• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C# Parent Form Question.

Balthazar

Golden Member
Ok, so I have a C# app that has multiple forms, but what I want is lets say I have form a open, and I hit a button on it to open form b, how can I make it so where form a is "attached" to form b. Get what i'm saying? So there is only one item in the taskbar, and clicking on it brings both form a and form b to the foreground.

TIA

-Balthazar-
 
There isn't a way I know of to get 2 forms to come into the foreground "attached". You can use MDI forms or Dialog forms but they won't do what you are asking as you can only manipulate one form at a time. What I would do is make the two forms into one by putting all of the controls onto seperate panels of a single form. Then you can hide panel2 until you want to see it.
 
I believe what you are looking for is MDI forms (Dont know if C# supports, i'd imagine it would)

Dim frmChild as new frm
Dim frmParent as new frmMain
frmParent.MDIParent = true
frmChild.MDIParent = frmParent (me/this)

Thats VB syntax like, it'd be very similar in C#
 
Back
Top