Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Yes, I found that it was not the Pen it was how DrawRectangle draws the lines!!!! It is very annoying!!!!!!!

 

Here is the rectangle I have to use to draw a border:

this.BorderRect=new Rectangle(this.borderWidth/2, this.borderWidth/2, this.Size.Width-this.borderWidth, this.Size.Height-this.borderWidth);

 

The top and left edges start the line in the middle and move out half and half. The right and bottom edges start on the inside and draw out!!

 

Why?

C#

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...