centereing image in MDIClient region

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

I can get an image into the MDI client region with the following code but it
tiles, how can i make it center only? thanks

Dim c As Control
For Each c In Me.Controls
If c.GetType.Name = "MdiClient" Then
Dim b As Drawing.Bitmap
b = New
Drawing.Bitmap(GetType(frmMainWindow).Assembly.GetManifestResourceStream("bd
b.reschlogo.png"))
c.BackgroundImage = CType(b, System.Drawing.Image)
End If
Next
 

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

Back
Top