DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: draw line in picture box

  1. #1
    Join Date
    Mar 2007
    Posts
    22

    draw line in picture box

    i want draw a line graph in picture box. How to write the code to draw line represent axis x and axis y. how to put the value behide axis -x and axis -y?
    i want the line in white colour.Thanks

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    look at the graphics methods of the PictureBox objects:

    Line
    Print
    CurrentX
    CurrentY

    that BTW can be used also in the Form and Printer objects. Use them in the Paint event of the PictureBox (or set the AutoRedraw property to True)

    by default the scale of the graphics objects are in twips, (0,0) is the left-top corner
    You can change units and scales as you wish using the ScaleMode property and the Scale method
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Similar Threads

  1. Replies: 3
    Last Post: 03-14-2007, 05:59 PM
  2. Replies: 0
    Last Post: 05-20-2006, 04:49 AM
  3. Draw a diagonal line
    By GonzoGirl in forum Web
    Replies: 1
    Last Post: 11-30-2000, 06:16 PM
  4. Sample Sites.
    By Murray Foxcroft in forum Web
    Replies: 5
    Last Post: 11-02-2000, 03:42 AM
  5. resize a picture or image box
    By Rally in forum VB Classic
    Replies: 0
    Last Post: 06-29-2000, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center