|
-
Jan 5th, 2014, 02:32 AM
#7
Thread Starter
Addicted Member
Re: How do I put a background image behind a Aero glass Form!
 Originally Posted by boops boops
You can probably do it by using a separate form to show the image. This will work for a normal form, so I guess it will work for an Aero form too.
Make the background form FormBorderStyle = None and set your image as its BackgroundImage. If the Aero form can be resized or repositioned, code its SizeChanged and Move event handlers to keep the bounds of the image aligned. And make the background form the Owner of the Aero form, so that the Owned form will stay locked in front of its owner in all conditions. There are several ways to set the ownership, e.g.
Code:
BackgroundForm.AddOwnedForm(Me)
'or
Me.Owner = BackgroundForm
where Me is the Aero form.
To prevent both forms showing in the TaskBar, set the Background form's Text to the same as the Aero Form, and set ShowInTaskbar = False for the Aero form.
BB
thanks a lot boops boops .
But I didnt understand what you meant by this line "If the Aero form can be resized or repositioned, code its SizeChanged and Move event handlers to keep the bounds of the image aligned."
Can you please explain it to me by an example or so?
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
|