I don’t think using GDI is not appropriate for this.
At this point I use an empty PictureBox with border and make the width or
height “1” to have vertical or horizontal lines. I am wondering is this the
best way to do it or not.
I am not sure what is your real concern. Why you can not use GDI to draw
the line?
Yes, I think your workaround of using picturebox border should work.
However, because control embeded extra code in it, which may cost some
performance. So I think using GDI to draw the line should be more
effective. Thanks
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Without using GDI? I suppose you are after a control that you can drop on
the form.
In this case you can use a Panel which width or height property is set to
something small - say 4. Playing withe the border style you can gat pretty
decent results.
The other option would be the splitter control if you need resizable
divider.
I don’t think using GDI is not appropriate for this.
At this point I use an empty PictureBox with border and make the width or
height “1” to have vertical or horizontal lines. I am wondering is this
the best way to do it or not.
A very simple solution is to use a Label control. Give the Text property an
empty string and just make the size either tall and thin or wide and narrow.
Changing the border style to FixedSingle may also be appropriate.
Hope this helps.
Dave
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.