Original MDI background image
7 replies
Try this code:
IMPORTANT: the 'BackgroundImageLayout' property of the form must be equal to the code
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is MdiClient Then
ctl.BackColor = Color.Yellow
ctl.BackgroundImageLayout = ImageLayout.Stretch
ctl.BackgroundImage = Image.FromFile("C:\Image.png")
End If
Next
0
source to share
Thanks for the idea!!!! it's too easy, just change the background of the panel and put this below C # code:
Form2 frm = new Form2();
frm.TopLevel = false;
panel1.Controls.Add(frm);
frm.Show();
this for vb.net
Dim frm = New Form2
frm .TopLevel = False
Panel1.Controls.Add(frm )
frm .Show()
0
source to share