By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Autoredraw simillar property

P: n/a
XY
I've noticed that neither forms nor picture boxes have
the autoredraw property anymore in VB .NET. What
substitute is there for it? What lines of code should i
write to grant the form or the picture box this property?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Draw on a bitmap and set the pictureboxes image to the bitmap

Dim bm As New Bitmap(PictureBox1.Width, PictureBox1.Height)

Dim g As Graphics = Graphics.FromImage(bm)

Dim rDraw As New Rectangle(0, 0, bm.Width, bm.Height)

g.Clear(Color.Blue)

g.FillEllipse(Brushes.Red, rDraw)

g.Dispose()

PictureBox1.Image = bm

http://www.bobpowell.net/picturebox.htm

Ken

---------------------------------

"XY" <an*******@discussions.microsoft.com> wrote in message
news:2e*****************************@phx.gbl...
I've noticed that neither forms nor picture boxes have
the autoredraw property anymore in VB .NET. What
substitute is there for it? What lines of code should i
write to grant the form or the picture box this property?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.