How do I draw a line?
How do I draw a line?
How do I draw a line?
How do I draw a line?
How do I draw a line?
How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line?
How do I draw a line? How do I draw a line?
How do I draw a line?
Go Back  Xtreme Visual Basic Talk > > > How do I draw a line?


Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2003, 02:24 PM
Blue_Q Blue_Q is offline
Newcomer
 
Join Date: Dec 2003
Posts: 8
Angry How do I draw a line?


I have been looking through the MSDN library and the Internet (Google and here) and I just can NOT figure out why my image editor tools are disabled/unavailable to me.

All I want to do is draw some lines on my form, and I don't think I need to use a "Pen" method to do it. Why will my VS .net not allow me to use my drawing tools on my form??

__________________
Aaron

Visual Studio .NET beginner
(But has reverted back to Visual Basic 6)
Reply With Quote
  #2  
Old 12-22-2003, 02:49 PM
Flyguy's Avatar
FlyguyHow do I draw a line? Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,160
Default

Reply With Quote
  #3  
Old 01-19-2004, 07:45 AM
SpiN9823's Avatar
SpiN9823 SpiN9823 is offline
Centurion
 
Join Date: Jan 2004
Location: New Jersey
Posts: 126
Default

make a line in paint then make a picturebox in vb.net click on th e3 line next to image in the properties then find where you saved ur line then insert and resize the box
Reply With Quote
  #4  
Old 01-19-2004, 09:56 AM
jos_pol jos_pol is offline
Newcomer
 
Join Date: Apr 2003
Location: Belgium
Posts: 20
Default

Quote:
Originally Posted by SpiN9823
make a line in paint then make a picturebox in vb.net click on th e3 line next to image in the properties then find where you saved ur line then insert and resize the box



==> thats not the right way. its very slow, you need to draw each line seperatly, ...
Code:
Dim Bitm As New Bitmap(1, 1) Dim Graph As Graphics Bitm = New Bitmap(100, 100) Graph = Graphics.FromImage(Bitm) Graph.DrawLine(pen, x1, y1, x2, Y2)

you can draw as many lines (and ellipses, rectangles, text, curves, etc) as you want by calling Graph.

i hope i helped you

me
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing inclined squares XVB Interface and Graphics 7 11-14-2003 03:46 AM
Drawing joined parallel line segments bart111 Game Programming 0 03-15-2003 06:32 PM
Transfer private controls to another project.. Help! Jazler General 8 07-01-2002 09:59 AM
How to draw in a container using Line method ? Neptune General 3 06-08-2001 02:11 AM
How to goto end of the line or record line snownieve General 3 03-28-2001 01:14 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How do I draw a line?
How do I draw a line?
How do I draw a line? How do I draw a line?
How do I draw a line?
How do I draw a line?
How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line? How do I draw a line?
How do I draw a line?
How do I draw a line?
 
How do I draw a line?
How do I draw a line?
 
-->