Background image for an MDI

R

Rethish

Hi All,
I want to display an background image for an MDI container.
I used the following codes after initializeComponent()

Dim c As Control
For Each c In Me.Controls

If TypeOf c Is MdiClient Then

c.BackColor = Color.White

c.BackgroundImage = Me.BackgroundImage.FromFile(Application.StartupPath &
"\images\Main_Page.jpg")

Exit For

End If

Next



The background image is tiled in the MDI container.

May I know how to solve this issue?


Rethish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top