473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Etched or black line on a form

Hi,

Which standard control on the Toolbox of Visual Studio 2005 can I use to add
a black or etched line (separator) to my form?

Thanks
Feb 23 '07 #1
4 2198
On Feb 22, 9:09 pm, "muriwai" <muri...@nospam.nospamwrote:
Hi,

Which standard control on the Toolbox of Visual Studio 2005 can I use to add
a black or etched line (separator) to my form?

Thanks
The shape controls were removed after Visual Studio 6. You can
either:

a) Add a label with height 1, and set border style to Single

b) Override Form_OnPaint(Graphics g) {

// Draw the line
g.DrawLine (x,y,x2,y2);
}

Either way will work.
Enjoy.

Feb 23 '07 #2
Thanks. I am curious why Microsoft removed this?

--

<ma*****@gmail.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
On Feb 22, 9:09 pm, "muriwai" <muri...@nospam.nospamwrote:
>Hi,

Which standard control on the Toolbox of Visual Studio 2005 can I use to
add
a black or etched line (separator) to my form?

Thanks

The shape controls were removed after Visual Studio 6. You can
either:

a) Add a label with height 1, and set border style to Single

b) Override Form_OnPaint(Graphics g) {

// Draw the line
g.DrawLine (x,y,x2,y2);
}

Either way will work.
Enjoy.

Feb 23 '07 #3
On Fri, 23 Feb 2007 15:09:09 +1300, "muriwai" <mu*****@nospam.nospam>
wrote:
>Hi,

Which standard control on the Toolbox of Visual Studio 2005 can I use to add
a black or etched line (separator) to my form?

Thanks
I tend to use a panel with height, or width, set to 1.

rossum

Feb 23 '07 #4

"muriwai" <mu*****@nospam.nospamwrote in message
news:Oo****************@TK2MSFTNGP06.phx.gbl...
Hi,

Which standard control on the Toolbox of Visual Studio 2005 can I use to
add a black or etched line (separator) to my form?

Thanks
I use a label with a height of 1.

Robin S.
Feb 23 '07 #5

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

Similar topics

4
by: Abs | last post by:
Hi! I'm building a website for some friends in a independent game developing group. The site is almost done but I've come across a bug that only happens in IE6 (I've tested the site with the...
2
by: Stuart Masters | last post by:
Could somebody please tell me if it is possible, and if so how, to place a command button on a form so that when it is clicked a black line will be placed through all the clients information (name,...
1
by: newbie | last post by:
In MS Access 2000, the text attributes in the properties panel for a label or text control do not include any shadowed, embossed or etched option. How do you get text to look etched (eg, to add a...
4
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it...
3
by: moondaddy | last post by:
I have some text in a page that when a certain even happens, I need to make it glow from black to red (through a spand of 1 second) pause for a few seconds, and then slowly change from red to black...
2
by: Brian Henry | last post by:
Is there a quick way to produce an etched line look that microsoft uses to split up sections (similar to the bottom line of a group box) with out actually using the GDI commands to draw it as line...
6
by: Larry Serflaten | last post by:
Can anyone see something wrong with the code below? Friend Sub MapUpdate(ByRef Artwork As Bitmap, ByRef Player As MapObject) If grxForm Is Nothing Then grxForm = Me.CreateGraphics Dim hdcDst...
7
vdraceil
by: vdraceil | last post by:
Hi,i want to give my form a black shade,it must look as if a black cloth is covering it.i want to do this to give my application a sophisticated look.there are lots of option buttons in my...
32
by: =?Utf-8?B?U2l2?= | last post by:
I have a form that I programmatically generate some check boxes and labels on. Later on when I want to draw the form with different data I want to clear the previously created items and then put...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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,...
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
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...
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,...

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.