473,466 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 8382
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
6
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
4
by: Bilo | last post by:
I have a Windows Forms Class MainGUI I have declared MainGUI maingui; public System.ComponentModel.Container components = new Container(); in the Class I call another class MediaDriver with...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
3
by: Lucas Tam | last post by:
Is there a divider control in VB.NET similar to a Horizontal Line in HTML? In the About Box of VS.NET, there is a divider line at the bottom of the page. -- Lucas Tam (REMOVEnntp@rogers.com)...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
2
by: Jim Lewis | last post by:
Anyone know how to create a draggable divider between two Tkinter windows?
8
by: Lord Zoltar | last post by:
Hi, I've got a list view that displays a series of images. I'd like to be able to draw a divider across the list view to divide the images into groups. Ideally, I'd have a group name, with a line...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.