Hi all,
O.k., here's my dilemma. I'm creating a program for a beauty type business here in town and they are needing some way to schedule their clients and have it interact with a database. They want it to look like the scheduler that Outlook uses. Anyone know if this is possible or if there is just a simple control to use?
Also one other question. Is it possible to have a window that can be maximized within a program? For instance like in Adobe Photoshop you have a lot of different windows running around and some of them are bound to the main window and can be maximized within it. Sorry that's rather vague but it's the best way that I can think to describe it.
Create a Windows Application Project .
In the Properties window of that window , set the IsMDIContainer property to true.
This designates the form as an MDI container for child windows.
then you will get exactly what you are looking for.
This example assumes that you have an MDI Window and one on ther window called frmResults. On the MDI Window you will need to place two buttons, one called cmdNewWindow and the other called cmdArrange.
VB Code:
Private Sub cmdNewWindow_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles cmdNewWindow.Click
Dim f As New frmResults()
f.MdiParent = Me
f.Show()
End Sub
Private Sub cmdArrange_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles cmdArrange.Click
OMG...you are the man! That was exactly what I was looking for concerning the parent/child windows. One other quick question concerning this. How would I go about creating the buttons so that when the child windows are maximized that they don't go "under" the buttons?
O.k., on the MDIContainer I would like to have a menu with buttons below it...the menu isn't a problem but whenever I put buttons below the menu if I maximize the interior forms the buttons go over the form. I haven't played with MDIContainers much...and haven't really played with .NET that much either, so I'm really not sure how to better explain it ...
Not really, what I have is the Container form and 2 others that open up when the main form loads. There is a menu and some buttons at the top of the Container form but when one of the smaller forms is maximized within the container form it goes behind the buttons. What I'm trying to do it get the buttons on the Container form to be "ignored" when the interior forms are maximized. So that the interior forms don't go behind the buttons...hmmm...I'll send a screen shot in a second.