开发者

Draw listbox item properly vb.net 2005

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜