divider on windows form?

  • Thread starter Thread starter Tarren
  • Start date Start date
T

Tarren

Hi:

How would I place a divider on the form where it looks chiseled and thin
line - they are everywhere in Windows Apps, but cannot find the control to
put on the form.

Thanks
 
* "Tarren said:
How would I place a divider on the form where it looks chiseled and thin
line - they are everywhere in Windows Apps, but cannot find the control to
put on the form.

Have a look at the toolbox, there is a Splitter control available. You
will have to dock the other containers to this control.
 
Tarren,
Do you want a visible divider, like the VB6 line control?

Or do you want a movable divider like the divider between the Folder Tree &
File List on Windows Explorer?

For the later see the Splitter control the others suggested.

For the former see the following articles:
http://msdn.microsoft.com/msdnmag/issues/03/06/AdvancedBasics/default.aspx


I remember an article on using the Windows "STATIC" control to draw the
line, however I am not finding a link right now.

Hope this helps
Jay
 
Hi Tarren,

Because you say that you see that you see them everywhere in windows, I have
an other answer than the others.

Do you mean the groupbox?

You can drag it on a form and than just drag your other controls in it.
Keep in mind that the groupbox is than the parent of the controls you have
dragged in it.

Cor
 
* "Jay B. Harlow said:
I remember an article on using the Windows "STATIC" control to draw the
line, however I am not finding a link right now.

You can use a label control with width or height set to 2, and
'BorderStyle' set to 'Fixed3D' to create an inset line.
 
Herfried,
The article I'm thinking of actually created a Win32 Line (it did not rely
on the width & height trick).

Basically they applied with Win32 style of SS_ETCHEDHORZ to the Win32 Window
Handle to get a horizontal etched line.

Basically using one of the following:

http://msdn.microsoft.com/library/d...taticcontrolreference/staticcontrolstyles.asp

I thought it was an MSDN Magazine article, however I'm not finding it right
now. I'll see if I can find the link...

Thanks
Jay
 
* "Jay B. Harlow said:
The article I'm thinking of actually created a Win32 Line (it did not rely
on the width & height trick).

I believe, but I wanted to post an alternative solution :-). Thanks for
the links!
 
Thanks all - that article looked quite a bit of work - I think I will use
the label box solution for this app I am working on and will bookmark the
article for the next one. :)
 
Back
Top