Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Background image question on MDI parent form
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00862374
Message ID:
00862736
Views:
14
>Hi Brian,
>
>Thanks for the reply. I haven't done any graphics stuff with .NET yet - so "simply creating a new bitmap in memory" and doing the other things you suggested - doesn't sound all that simple to me.
>
>Can you point me in the direction of any articles that discuss this topic (manipulating a bitmap in memory). None of the books I have discuss how this can be done....
>
>In the meantime, I think I'll just use a Picturebox control and show/hide it as need be.
>
>Regards, Al
>
>>>Hi,
>>>
>>>I'd like to add a logo as a background image on my MDI Parent form. If I use the BackgroundImage property - the image is tiled to fill the entire form. What is the best approach to add an background image to the middle of an MDI Parent form (i.e. so that it doesn't fill the entire screen?)
>>
>>You can do a little more work and just reassign the background image upon resize and do your own manipulation of the image in memory. Simply keep creating a new bitmap in memory that is of the background color you want, then copy the bitmap you want to show to the center of your new bitmap then assign the property.
>>
>>That should do it for you. Just remember what it was like before they had a MDI background property. Sometimes taking a step back lets you take a step forward.
>>
>>Enjoy!


I guess I have been used to doing most of the work since I used to use VC++ as my primary windows development language, so image manipulation was part of the common tasks. I suggest checking out the help file and looking at the Bitmap class and the Graphics classes. The idea is to create a large bitmap of the background color the same size as the MDI work area. Then paste the image you want into the center. I am still learning the .NET namespace as most of what I use .NET for is currently just back office protocol classes.

Good luck with the project.
Brian Seekford
Seekford Solutions, Inc.
http://www.SeekfordSolutions.com
Internet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!
Previous
Reply
Map
View

Click here to load this message in the networking platform