Click here to Skip to main content
16,006,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading a form in another form like win explorer Pin
Arun Bhalla17-Mar-03 17:04
Arun Bhalla17-Mar-03 17:04 
GeneralRe: Loading a form in another form like win explorer Pin
James T. Johnson17-Mar-03 18:00
James T. Johnson17-Mar-03 18:00 
GeneralRe: Loading a form in another form like win explorer Pin
Arun Bhalla17-Mar-03 18:16
Arun Bhalla17-Mar-03 18:16 
GeneralRe: Loading a form in another form like win explorer Pin
foxms13-Apr-03 4:29
foxms13-Apr-03 4:29 
GeneralRe: Loading a form in another form like win explorer Pin
LongRange.Shooter11-Mar-03 8:55
LongRange.Shooter11-Mar-03 8:55 
GeneralRe: Loading a form in another form like win explorer Pin
John'o12-Mar-03 12:09
John'o12-Mar-03 12:09 
GeneralRe: Loading a form in another form like win explorer Pin
LongRange.Shooter13-Mar-03 4:36
LongRange.Shooter13-Mar-03 4:36 
GeneralRe: Loading a form in another form like win explorer Pin
John'o24-Mar-03 20:11
John'o24-Mar-03 20:11 
Hello theRealCondor,

I managed to get so far with the frame of my mdi app using the magic control you pointed me to.

/* excuse's
Bear with me if you can, it's been a while between writing winforms apps. I've been doing a lot with web based stuff, so I'm trying to get my head around it again...
*/

I have 3 forms in my mdi app, frmMain (mdiparent), frmOutLookBar (_manager.DockLeft) and frmHome (should fill everything except the area of frmOutLookBar).

The idea is to have an outlook style layout. So I have the frmMain that loads the menu (frmOutLookBar), I dock this to the left. Here's where I've run into a wall. I can't figure out how to get the frmHome to fill the area to the right of the frmOutLookBar.

Code: 1st attempt;
<br />
_dockingManager = new DockingManager(this, VisualStyle.IDE);<br />
<br />
Content LeftWindow = _dockingManager.Contents.Add(new frmOutLookBar(), "Control Menu");<br />
<br />
_dockingManager.AddContentWithState(LeftWindow, State.DockLeft);<br />
_dockingManager.ShowContent(LeftWindow);<br />


This gave me the stand alone left docking as hoped. I also tried to dock the frmHome to the right.

Code: 2nd attempt;
<br />
_dockingManager = new DockingManager(this, VisualStyle.IDE);<br />
<br />
Content LeftWindow = _dockingManager.Contents.Add(new frmOutLookBar(), "Control Menu");<br />
<br />
_dockingManager.AddContentWithState(LeftWindow, State.DockLeft);<br />
_dockingManager.ShowContent(LeftWindow);<br />
<br />
Content RightWindow = _dockingManager.Contents.Add(new frmHome(), "Control Menu");<br />
<br />
_dockingManager.AddContentWithState(RightWindow, State.DockRight);<br />
_dockingManager.ShowContent(RightWindow);<br />


This gave me two docked windows, a left docked window, a gap and a right docked window??

Any help with getting frmHome on the right side as a filler would be great!

Definitely getting closer to what I'm after,

John
GeneralRe: Loading a form in another form like win explorer Pin
LongRange.Shooter28-Mar-03 2:49
LongRange.Shooter28-Mar-03 2:49 
Generalpopulating an input of file type textbox Pin
CucumberPickles10-Mar-03 12:24
CucumberPickles10-Mar-03 12:24 
GeneralRe: populating an input of file type textbox Pin
James T. Johnson10-Mar-03 17:59
James T. Johnson10-Mar-03 17:59 
GeneralA simple Form OK button question Pin
DionChen10-Mar-03 11:36
DionChen10-Mar-03 11:36 
GeneralRe: A simple Form OK button question Pin
Gogou10-Mar-03 12:02
Gogou10-Mar-03 12:02 
GeneralRe: A simple Form OK button question Pin
DionChen10-Mar-03 16:48
DionChen10-Mar-03 16:48 
GeneralRe: A simple Form OK button question Pin
James T. Johnson10-Mar-03 18:07
James T. Johnson10-Mar-03 18:07 
GeneralRe: A simple Form OK button question Pin
Zek3vil11-Mar-03 7:01
Zek3vil11-Mar-03 7:01 
GeneralRe: A simple Form OK button question Pin
LongRange.Shooter11-Mar-03 7:33
LongRange.Shooter11-Mar-03 7:33 
QuestionBackground color on a TreeView checkbox? Pin
se99ts10-Mar-03 10:35
se99ts10-Mar-03 10:35 
QuestionDataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner10-Mar-03 10:25
Chris Richner10-Mar-03 10:25 
AnswerRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
leppie10-Mar-03 10:39
leppie10-Mar-03 10:39 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner10-Mar-03 22:48
Chris Richner10-Mar-03 22:48 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
ed2d11-Mar-03 21:25
ed2d11-Mar-03 21:25 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner12-Mar-03 5:08
Chris Richner12-Mar-03 5:08 
QuestionGet xpath of current Node? Pin
Bog10-Mar-03 10:00
Bog10-Mar-03 10:00 
AnswerRe: Get xpath of current Node? Pin
Christian Graus10-Mar-03 10:08
protectorChristian Graus10-Mar-03 10:08 

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.