*/
How to draw a line in .NET? Line Control for .NET 0
Submitted By:
rustem
Rating:





(
Rate It)
When a beginner who has VB6 experience first time opens .NET
and just going about making a form up he/she could notice there
is no Line in the .NET toolbox. What happened, where did it go?
There is a difference from VB6 forms that Windows Forms .NET
does not support the Line control. The Line class is based on
System.Drawing namespace that provides access to GDI+ basic
graphics functionality. A Line control is a graphical control
that displays a horizontal, vertical, or diagonal
one-pixel-wide line that can't be changed directly. The Line
control can be changed dynamically at run time. The control
class Line that is implemented in both languages (VB.Net and
C#) is derived from System.Windows.Forms.Control. It overrides
the OnPaint method to draw itself. The class will draw the line
depending on its properties. Line controls can be displayed on
forms, in picture boxes, and in other visual controls.
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our
submissions area.
Screenshot
Details
Number of downloads:
7051
Comments (2)
better ,please try to give more with code




Posted by: prasad on Monday, May 29, 2006
better some more,please provide source code as a example,it will help the readers as well as programmers.
thank'u'
Just some questions about the Line control
Posted by: Denson on Wednesday, April 18, 2007
I was wondering if there is a way to force the control to draw on a background image and force the background color of the control to be transparent.
I appreciate any response. Thank you.
Denson
Add Your Rating