Re: Drawing a line with a bevel ot sunken effect
- From: "Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Jun 2005 06:41:02 -0700
Hi Bob
Thanks for the reply, I ended taking the 2 line approach; however I didn't
know about ContralPaint. What would you suggest?
Thanks again.
Craig
"Bob Powell [MVP]" wrote:
> That's impossible to do with a 1 pixel line. The minimum is two pixels.
>
> You can do your own by drawing rectangles offset from one another by a pixel
> or use the ControlPaint class which has some border drawing routines.
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
> http://www.bobpowell.net/tipstricks.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/faqmain.htm
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:C067140D-F4CE-46AA-A4F4-2113854E206D@xxxxxxxxxxxxxxxx
> > Hi
> >
> > I'm trying to draw a 1px horizontal line that has a sunken/bevel effect.
> > Same style as the seperator lines displayed in a file property dialog
> > (open
> > Windows Explorer, right click a file, select Properties)
> >
> > Fairly new to WinForms, so any suggestions are appreciated.
> >
> > Craig
>
>
>
.
- Follow-Ups:
- Re: Drawing a line with a bevel ot sunken effect
- From: Bob Powell [MVP]
- Re: Drawing a line with a bevel ot sunken effect
- References:
- Drawing a line with a bevel ot sunken effect
- From: Craig
- Re: Drawing a line with a bevel ot sunken effect
- From: Bob Powell [MVP]
- Drawing a line with a bevel ot sunken effect
- Prev by Date: Draw ASP .NET FlowChart
- Next by Date: Image dimensions on a graphics object
- Previous by thread: Re: Drawing a line with a bevel ot sunken effect
- Next by thread: Re: Drawing a line with a bevel ot sunken effect
- Index(es):
Relevant Pages
|