Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

How can I put a smal Image only ones at a form background?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andreas - 30 Mar 2006 10:10 GMT
Hello

I write a windows form in VB.Net and set the background
(myForm.BackgroundImage = myImage) to a small Image. The problem with
them is that myImage is copy severel times over the whole backround.
But I want the Image joust ones in the uper left corner.

Regards
Andreas
Jason Hales - 30 Mar 2006 12:11 GMT
Is there any readon why you're using the BackgroundImage prooperty?
Can't you just add a PictureBox, using right click | send to back or
calling SendToBack(), in the op left corner containing myImage?
Andreas - 30 Mar 2006 13:29 GMT
> Is there any readon why you're using the BackgroundImage prooperty?
> Can't you just add a PictureBox, using right click | send to back or
> calling SendToBack(), in the op left corner containing myImage?

My Form is a MdiContainer whose children are placed about the
Position(10,0). When I use a PictureBox it overlap the children-Form.
When I use the method SendToBack() it completly disappear.
Jason Hales - 30 Mar 2006 14:28 GMT
Hi Andreas, that's a new one on me I never thought SendToBack would
place the picture under the MDI client area.

What are you trying to achieve - some sort of tool bar?  If so can you
place the picture box in a Panel docked at the top.

The quick'n'dirty option could be to scale the of myImage to the size
of your client area - but that's not an ideal solution
Andreas - 31 Mar 2006 06:37 GMT
Jason Hales schrieb:

> Hi Andreas, that's a new one on me I never thought SendToBack would
> place the picture under the MDI client area.
[quoted text clipped - 4 lines]
> The quick'n'dirty option could be to scale the of myImage to the size
> of your client area - but that's not an ideal solution

Thank you

I put myImage in a PictureBox and set my MdiCields next to it and it
works.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.