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 / Windows Forms / WinForm Controls / December 2004

Tip: Looking for answers? Try searching our database.

Simple Line Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Hall - 30 Dec 2004 06:02 GMT
I'm looking for a simple line control to put on a form to break up UI
components. I don't want to use a GroupBox, but I need something to seperate
a few buttons from the rest of the form. If I was using HTML, I'd use a
simple <HR> tag. Is there a lightweight control that will do the job? I've
been using a plain UserControl and setting its BackColor =
System.Drawing.SystemColors.ControlDark and its Height = 1 (lineThickness)
and it's Width = lineLength. It gets a little messy though using a control
that's resizable in both directions within the screen designer and managing
to keep the line thickness fixed when you're dragging it around to change
the length.

Can anyone recommend a simpler existing control for this purpose? I'm hoping
for a pre-made control in the .Net framework.

If I do stick with a UserControl or derived class, is there a way to tell
the screen designer not to allow the thickness (height) to change while
allowing the length (width) to be dragged and still allowing the thickness
(height) to be set in the property editor

Thanks,
Dave
Herfried K. Wagner [MVP] - 30 Dec 2004 09:27 GMT
"Dave Hall" <dhall@nospam.deboy.com> schrieb:
> I'm looking for a simple line control to put on a form to break up UI
> components.

See (complete thread):

<URL:http://groups.google.de/groups?threadm=eV5alMTMEHA.624%40TK2MSFTNGP11.phx.gbl>

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

Dave Hall - 30 Dec 2004 18:41 GMT
Thanks, that's what I was looking for. In the end, the reference to
http://www.codeproject.com/cs/miscctrl/hvrules1.asp was most helpful.

Dave
> "Dave Hall" <dhall@nospam.deboy.com> schrieb:
> > I'm looking for a simple line control to put on a form to break up UI
> > components.
>
> See (complete thread):

<URL:http://groups.google.de/groups?threadm=eV5alMTMEHA.624%40TK2MSFTNGP11.p
hx.gbl>

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.