i already can draw a listbox item rectangle in the listbox Drawitem event properly like this
'// Draw border ACA899
e.Graphics.DrawRectangle(myPen, e.Bounds.X, e.Bounds.Y, e.Bounds.Width,e.Bounds.Height)
how do i
- position theitem text in left-middle alignment?
- correct the end of the x2,y2 (see picture) of the rectangle that is not showing to show properly开发者_JS百科?
- 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)
精彩评论