Etched or black line on a form

M

muriwai

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
 
M

mangist

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.
 
R

rossum

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
 
R

RobinS

muriwai said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top