all groups > vb.net controls > july 2006 >
You're in the

vb.net controls

group:

Working with PicureBox


Working with PicureBox Christian
7/28/2006 12:50:02 AM
vb.net controls:
Hi all,

I was working with a picturebox in VB6 to display graph with legend.

I'm trying to convert my application in vb.net.

My problem is that many properties of vb6 picturebox doesn't exists in vb.net.

I want to write text on the picturebox for the legend and the following code
doesn't works :

mypicture.CurrentX = 100
mypicture.CurrentY = 100
mypicture.Print "My legend"

Moreover, properties or methods like AutoRedraw, DrawStyle, DrawWidth, Line,
PaintPicture, ScaleMode, ScaleX, TextWidth.

What must I use now ?

Does anybody can help me please ??

Many many thanks in advance.
Re: Working with PicureBox Ken Tucker [MVP]
7/30/2006 7:33:16 AM
Hi,

Take a look at the graphics class.
http://msdn2.microsoft.com/en-us/library/zbyth951.aspx

Ken
--------------
[quoted text, click to view]

AddThis Social Bookmark Button