Quote Originally Posted by boops boops View Post
I'm talking about the user repositioning or resizing the form at run time. The Aero form in the images you posted doesn't have a border, so I maybe you aren't going to allow that. Or does your Aero form provide some other way for the user to move or resize the form? If so, let's assume your background form is called BackgroundForm and you want it to show a margin of 35 pixels all round the Aero form. You could code it like this:
Code:
Private Sub Form1_Move(sender As Object, e As System.EventArgs) Handles Me.Move, Me.SizeChanged, Me.Shown
      Dim r As Rectangle = Me.Bounds
      r.Inflate(35, 35)
      BackgroundForm.Bounds = r 		
End Sub
BB
Thank you very much boops boops it worked great as I expected.