|
-
Jan 5th, 2014, 06:18 AM
#9
Thread Starter
Addicted Member
Re: How do I put a background image behind a Aero glass Form!
 Originally Posted by boops boops
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|