473,396 Members | 1,816 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,396 software developers and data experts.

Copy from a Picture Box

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

Jul 17 '05 #1
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
Jul 17 '05 #2
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

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
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...
20
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...
5
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...". ...
3
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...
7
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...
2
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. ...
0
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...
0
samycbe
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
0
debasisdas
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...
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: 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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
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,...
0
Oralloy
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,...
0
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...
0
tracyyun
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...

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.