sde Posted November 13, 2003 Posted November 13, 2003 as suggested, i tried out the divil docking instead to compare to the magic docking. i do like it much better! What methods do I use in code to add something to the DockControl without using Drag-n-Drop? on FormMain, I have a DockHost. on that DockHost, I have a DockPanel. on that DockPanel, I have a DockControl. The examples are great, but I need to do this from the code since the object I want to put on the DockControl is not on my ToolBar. any help would be greatly appreciated. Quote codenewbie
sde Posted November 13, 2003 Author Posted November 13, 2003 i just ended up copying the panel from the other form and pasting it on the DockControl. Now I'm confused which components to use. Now I can't even set a FloatingWidth for when the a panel is un-docked, because it says it is a read only attribute. I like the feel of divil's components better, but magic is easier to save and restore. i feel so n00b. Quote codenewbie
Administrators PlausiblyDamp Posted November 14, 2003 Administrators Posted November 14, 2003 You can save the layouts quite easiliy with the DockHost.Layout property. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Gurus* divil Posted November 14, 2003 *Gurus* Posted November 14, 2003 You can add and remove dockcontrols to and from dockpanels with the usual Controls.Add and Controls.Remove methods. These work across the board with the DockingSuite tools. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
sde Posted November 14, 2003 Author Posted November 14, 2003 thanks! i figure i just need a little time working with it .. after going back to magic to work on it a little more, i see how much nicer the divil controls are to work with. i like the way the docks work better too. more solid is the only way i can describe it. i really appreciate the help ..and i really apperciate the controls too! now it is time to go build something cool =) .. thanks! Quote codenewbie
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.