469,572 Members | 1,306 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

divider on windows form?

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
Nov 20 '05 #1
11 8205
Hi,

Take a look at the Splitterbar

Ken
---------------
"Tarren" <noemailplease@thankyou> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #2
* "Tarren" <noemailplease@thankyou> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
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/is...s/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

"Tarren" <noemailplease@thankyou> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #4
Have a look at
http://www.codeproject.com/cs/miscct...lesplitter.asp
--

HTH

Éric Moreau, MCSD
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)

"Tarren" <noemailplease@thankyou> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #5
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
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.

Nov 20 '05 #6
* "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> scripsit:
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 K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7
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/de...trolstyles.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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c7***********@ID-208219.news.uni-berlin.de...
* "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> scripsit:
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 K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #8
Herfried,
Found it, check out the following article:

http://www.codeproject.com/cs/miscctrl/hvrules1.asp

Hope this helps
Jay

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c7***********@ID-208219.news.uni-berlin.de...
* "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> scripsit:
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 K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #9
Jay,

* "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> scripsit:
Found it, check out the following article:

http://www.codeproject.com/cs/miscctrl/hvrules1.asp


Interesting, but a lot of work for a little line ;-).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #10
* "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> scripsit:
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!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #11
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. :)
"Tarren" <noemailplease@thankyou> wrote in message
news:eV*************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Ayende Rahien | last post: by
3 posts views Thread by Lucas Tam | last post: by
4 posts views Thread by Rod Gill | last post: by
2 posts views Thread by Jim Lewis | last post: by
8 posts views Thread by Lord Zoltar | last post: by
21 posts views Thread by Dan Tallent | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.