Ok, I re-read what you wrote initially and think I now understand that
you just want to make your current 'Main' form one of the dockable windows ?
Or do you want to make your 'Main' form *the* top level component? (this
is what I did)
Either way, the former should be possible and is probably easier.
assuming you have your form MainForm which extends Form, you make this
extend DockContent:
MainForm : DockContent
then you call
mainForm.Show(_dockPanel);//WeifenLuo.WinFormsUI.Docking.DockPanel
where _dockPanel is the component that sits inside a blank Form. (best
to download the source which has a demo app)
Cheers
On 15/11/2012 6:43 PM, Ian Thomas wrote:
So, how to add an existing form to one of the DPS objects?
------------------------------------------------------------------------
Ian Thomas
Victoria Park, Western Australia
*From:*ozdotnet-boun...@ozdotnet.com
[mailto:ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Wallace Turner
*Sent:* Thursday, November 15, 2012 6:27 PM
*To:* ozDotNet
*Subject:* Re: DockPanel (Windows Form)
i'm using 2.6.0.0, we definitely downloaded it from
http://sourceforge.net/projects/dockpanelsuite
and it appears to have been moved to github like you say (which I
wasn't aware)
so short answer, the version i'm using isnt far behind the latest version.
On 15/11/2012 6:11 PM, Ian Thomas wrote:
Wal
Do tell J- the original DPS seems to have forked several times.
The simplest code sample I have seen (w/o showing how to use an
existing WinForm) is
http://dockpanelsuitcsharpexamples.googlecode.com/svn/trunk/SampleDockingApp
I see DPS v2.7 on github -- is that what you have used?
------------------------------------------------------------------------
Ian Thomas
Victoria Park, Western Australia
*From:*ozdotnet-boun...@ozdotnet.com
<mailto:ozdotnet-boun...@ozdotnet.com>
[mailto:ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Wallace Turner
*Sent:* Thursday, November 15, 2012 5:51 PM
*To:* ozDotNet
*Subject:* Re: DockPanel (Windows Form)
yes, i've done it, with much success.
On 15/11/2012 4:03 PM, Ian Thomas wrote:
Can I use the WeifenLuo DockPanel (WinForms code library)
objects to contain an existing Windows Form? I have a quit
complex form that I would like to auto-dock -- and don't want
to have to rebuild it entirely.
I can't find much descriptive information.
------------------------------------------------------------------------
Ian Thomas
Victoria Park, Western Australia