Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / December 2003

Tip: Looking for answers? Try searching our database.

Line on form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
matt p - 30 Dec 2003 05:18 GMT
Hi,

I can find any 'line' icon in the toolbox when working in
design view on a form in a Visual C# application.  Help
please!

Tx,
Matt
Robert Gruen [MSFT] - 30 Dec 2003 16:03 GMT
Matt,

The .NET framework does not have any shape controls.  You'll have to either
play games with the groupbox, button control, or something similar and
adjust it's height to 1 or width to 1 depending on the type of line you
need (horizontal vs. vertical).  You could of course always override the
paint method for your form and could use GDI/graphics to draw your line on
your form.

Thanks!  Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "matt p" <anonymous@discussions.microsoft.com>
[quoted text clipped - 24 lines]
| Tx,
| Matt
matt p - 31 Dec 2003 05:42 GMT
>-----Original Message-----
>Matt,
[quoted text clipped - 42 lines]
>
>.
Les Smith - 31 Dec 2003 21:30 GMT
Matt
A Label control with a minimum height makes a nice
replacement for the Line control in VB6.

Set the BorderStyle to FixedSingle and the size to nnn,1
for example to get the smallest height.

Hope this helps.

See articles, add-ins, books, free code at
http://www.knowdotnet.com

>-----Original Message-----
>Hi,
[quoted text clipped - 6 lines]
>Matt
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.