473,587 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ 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 8400
Hi,

Take a look at the Splitterbar

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
73197
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
2541
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 communicated solely through static method and Invoke()'s However, when I close my second form, the first one (main window) is hiding under all the...
4
464
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 the Constructor class MediaDriver {
9
2810
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 facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form...
3
8348
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) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
4
3141
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 further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is...
2
3779
by: Jim Lewis | last post by:
Anyone know how to create a draggable divider between two Tkinter windows?
8
5768
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 underneath it that spans the ListView. How could this be done? I tried using an image as the divider, but it forced the divider image to be the same...
21
3320
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 a zipcode that is unknown this form will open. I don't want users to modify any of this customers data until they close the zipcode form. ...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
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 we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.