Question buttons in MDI _ISSUE_

wowjen

Member
Joined
Dec 27, 2009
Messages
13
Programming Experience
Beginner
VB.Net

I have a button inside my MDI Form.
when that button is clicked form2 will be load in mdi form,
the problem is this, (see image below)





Uploaded with ImageShack.us


Button1 should be at the back of form2.
How to do this?
Please help... Thanks!



VB.NET:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim NewMDIChild As New Form2()
        NewMDIChild.MdiParent = Me
        NewMDIChild.Show()
End Sub
End Clas
 
The Button shouldn't be in that area of the form at all. That would be a horrible UI to have a Button disappear behind child forms. You should use a docked Panel, a ToolStrip or something like that. Apart from that, I don't think what you're asking for is actually possible. I just tried and the MdiClient control that hosts the child forms won't accept anything but forms.
 
@jmcilhinney

this is just an example of my problem,
originally
I removed the border of my mdi form to false
and I put a backgroud image to it
then put 3 buttons at the middle
that calls different forms.

That's what I like to my mdi form,
I just want to make my system look good.

but thanks for the response.
 
Back
Top