I filled a picture box with "Line" function and I'd like to copy my drawing
to another Picture Box.
Using this function does not work:
Picture2.PaintPicture Picture1.Picture, 0, 0, 1000, 1000, 0, 0, 1000, 1000,
vbSrcCopy
because Picture1 does not contain a picture. It contains lines from "Line"
function
Does anybody have a suggestion ?
Thank you
Nicolas Poirier 2 10850
"Nicolas Poirier" <ni***********@tlb.sympatico.ca> wrote in message
news:jl********************@news20.bellglobal.com. .. I filled a picture box with "Line" function and I'd like to copy my drawing to another Picture Box.
Using this function does not work: Picture2.PaintPicture Picture1.Picture, 0, 0, 1000, 1000, 0, 0, 1000, 1000, vbSrcCopy because Picture1 does not contain a picture. It contains lines from "Line" function
Does anybody have a suggestion ? Thank you Nicolas Poirier
First, set the AutoRedraw property of Picture1 to True.
Then draw your lines.
Then use
Picture2.Picture = Picture1.Image
Thank You :-)
"Steve Gerrard" <my********@comcast.net> a écrit dans le message de
news:64********************@comcast.com... "Nicolas Poirier" <ni***********@tlb.sympatico.ca> wrote in message news:jl********************@news20.bellglobal.com. ..I filled a picture box with "Line" function and I'd like to copy my
drawing to another Picture Box.
Using this function does not work: Picture2.PaintPicture Picture1.Picture, 0, 0, 1000, 1000, 0, 0, 1000,
1000, vbSrcCopy because Picture1 does not contain a picture. It contains lines from
"Line" function
Does anybody have a suggestion ? Thank you Nicolas Poirier
First, set the AutoRedraw property of Picture1 to True.
Then draw your lines.
Then use Picture2.Picture = Picture1.Image
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael |
last post by:
Ive been programming for some time now, so i wanted to get into graphics, but
i wanted to see if I could make a Picture Viewer. I have no experience with
the picture control, ive tryed the MSDN...
|
by: Greg |
last post by:
I'm fairly new to access (using 2002) and am setting up a DB for work.
along with each record the user also needs to make a flow diagram
(previously, these reports were composed in word and they...
|
by: Lyn |
last post by:
I am trying to copy selected fields from one table to another, by reading
the source table record into a recordset (ADO) and then copying the relevant
fields to an SQL statement "INSERT INTO...". ...
|
by: Marco Castro |
last post by:
I have a picture stored in an ole field in one of my access databases. Im
trying to put that picture into a picture box in one of my vb.net programs.
Unfortunately I keep on getting a type cast...
|
by: lgbjr |
last post by:
Hello All,
I¡¯m using a context menu associated with some pictureboxes to provide
copy/paste functionality. Copying the image to the clipboard was easy. But
pasting an image from the clipboard...
|
by: Emil |
last post by:
Hi,
if you open the link below and click on "Show Me" and then "Toggle
Transition" Button you will see a wonderfull fade in / fade out transition of
2 pictures.
...
|
by: mhospodarsky |
last post by:
Hi--
I am using VB.Net 2002 for this app. I am working with Tiff and jpeg
images. I have a picturebox set up that I use to view the images. I
have the picture box inside of a scrollable...
|
by: samycbe |
last post by:
Hi,
my project will take a picture file from local disk and shows. When it displays i want to save that file in server folder. How to do that?
Please help me
samy
|
by: debasisdas |
last post by:
Add two picture boxes to a form.
Set the ScaleMode property of both the pictureboxes to 3-Pixels.
General declaration
--------------------------------
Const ubx = 1000
Const uby = 500
Dim...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |