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

  • Thread starter Thread starter Andreas
  • Start date Start date
A

Andreas

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
 
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?
 
Jason said:
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.
 
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
 
Jason said:
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

Thank you

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