How to make multiple windows in a program
I am fairly new to C#, but I'm trying to write a program. For said program, I need to have multiple windows inside of the ClientBounds.
http://videoproductiontips.com/video-editing/editing-computers-and-video-editing-software/
As you can see in the link, this program is split into several differen开发者_StackOverflowt sections that allow for different tasks.
I have looked all over, but I simply can't find a tutorial or example code for how to do this in C# or XNA.
Sorry if I used the wrong jargon, as I said, I'm new.
Any help would be appreciated!
If i understood you correctly all you need to do is to add a new form (right click on the project, add > new item > windows form (or something like that))
And then make a button in your original form and in his event type Form2 myform = new Form2(); myform.Show();
(when form2 is the name of your second form)
Check this link out as a starting point. You are looking for "Docking" windows. I'm assuming you're using WPF. If not, do a search for
Docking Windows WinForms
for more information.
Docking is what you're looking for I think? If you're using WPF and searching for docking options, try Avalon Dock.
It's open source and pretty easy to incorporate than most other docking libraries I've tried. In fact, I've used it and would recommend it too. :)
精彩评论