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
 
Back
Top