Hi Cj,
I think using GDI+ to draw a line on the form is a better choice. A control
like label on the form requires a lot of extra code such as maintaining a
message loop, control painting code, maintaining window class structure,
interacting with OS Windows Manager component etc.. which more expensive
than a single GDI+ line drawing calling.
Additionally, Label can only express a vertical or horizontal line on the
form and can not meet your bias drawing need. However this can be easily
achieved by using GDI+.
Using GDI+ is much easier than you think(actually .Net Winform controls
internally use GDI+ to draw its appearance). "gene kelley" has provided you
a little sample code snippet, you may give it a try.
Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.