how to put a scalable image into a form (or panel)

W

Wolfgang

I'm a Java developer relatively new to to VB .NET (and I don't know
the old VB6 at all). I know how to draw lines, circles and other
simple shapes on a form in VB.NET (using the onPaint event).

Could someone out there please give me a simple example, or point me
to a SIMPLE example that:

1) puts a given JPEG (or GIF, or TIF) image into a form or panel (or
whatever other control is appropriate)

2) allows me to re-size the form or panel in the usual manner by
grabbing a corner with the mouse pointer and dragging it.
As I resize the form, the image is to re-scale itself, as appropriate,
to keep the form/panel filled completely.

Thanks for any help and advice,

Wolfgang
Santa Barbara, CA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top