开发者

Draw listbox item properly vb.net 2005

开发者 https://www.devze.com 2023-02-25 09:11 出处:网络
i already can draw a listbox item rectangle in the listbox Drawitem event properly like this \'// Draw border ACA899

i already can draw a listbox item rectangle in the listbox Drawitem event properly like this

Draw listbox item properly vb.net 2005

'// Draw border ACA899
e.Graphics.DrawRectangle(myPen, e.Bounds.X, e.Bounds.Y, e.Bounds.Width,e.Bounds.Height)

how do i

  1. position theitem text in left-middle alignment?
  2. correct the end of the x2,y2 (see picture) of the rectangle that is not showing to show properly开发者_JS百科?
  3. specify the thickness of the drawn rectangle?

thanks


I found the answer myself, thanks to those who helped

'// Draw border ACA899
e.Graphics.DrawRectangle(myPen, e.Bounds.X, e.Bounds.Y, e.Bounds.Width-1,e.Bounds.Height)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号