PC Review


Reply
Thread Tools Rate Thread

Autoredraw simillar property

 
 
XY
Guest
Posts: n/a
 
      16th Jul 2004
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?
 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      16th Jul 2004
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" <(E-Mail Removed)> wrote in message
news:2e96b01c46b1a$aef12ee0$(E-Mail Removed)...
> 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?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i match simillar data between two different rows in excel? =?Utf-8?B?VmljdG9yeQ==?= Microsoft Excel Worksheet Functions 3 17th Aug 2006 11:15 AM
find simillar variables in 2 different sheets =?Utf-8?B?bW9oYW1tZWQ=?= Microsoft Excel New Users 1 16th Aug 2006 02:56 AM
matching up simillar records turtlewick@adelphia.net Microsoft Access Queries 2 3rd Feb 2006 08:34 PM
Something simillar to Roboform dario Freeware 8 31st Oct 2005 09:19 PM
sleep simillar function..... Sophia Smith Microsoft VB .NET 2 25th May 2005 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:45 AM.