473,383 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Autoredraw simillar property

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
1 7960
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary | last post by:
hi, what is the change over from vb6 to vb.net in the case of picturebox1.autoredraw = true ? thanks, Gary
3
by: Johnny M | last post by:
using Access 2003 Pardon the subject line, but I don't have a better word for this strange behavior (or behavior I don't understand!!!) I have a class module named DepreciationFactor. One of...
0
by: Derek Tremblay | last post by:
Hello every body !! i need your help in GDI+ can you help me ? (PS : sorry for my poor english) Probleme : i want simulate AutoRedraw in .NET PictureBox control (in VB6 the property...
2
by: Edward Diener | last post by:
How does one specify in a component that a property is a pointer to another component ? How is this different from a property that is actually an embedded component ? Finally how is one notified in...
0
by: Brian Young | last post by:
Hi all. I'm using the Property Grid control in a control to manage a windows service we have developed here. The windows service runs a set of other jobs that need to be managed. The control...
8
by: Doug Marquardt | last post by:
Hi All: I want to simulate VB6 Autoredraw in VB.Net I figure I would probably have to create a memory dc, paint to that, and then create a bitmap based on the dc and copy that image into a...
0
by: =?Utf-8?B?LnBhdWwu?= | last post by:
i've got some code that runs via a background worker on another thread. the code draws a graph to a picturebox. vb.net hasn't got an autoredraw feature, so i'm trying to draw the picturebox image...
2
by: Jerry West | last post by:
Is there a comparable .NET function for the VB6 Form's .AutoRedraw function? JW
4
by: satyakam | last post by:
If i have more than one simillar entries in my table and i want to delete all but one particular entry, what is the way
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.