in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

bounds of an ImageListBoxControl item

Last post 11/18/2007 10:52 AM by Tsahi Asher. 0 replies.
Page 1 of 1 (1 items)
Sort Posts:
Previous Next
  • 11/18/2007 10:52 AM

    bounds of an ImageListBoxControl item

    hi,

    i'm trying to get the bounds of an item in an ImageListBoxControl in two different places, and in each place i get a different height for the rectangle.

    in the control's DrawItem event, e.Bounds.Height returns 16, which seems to be the right thing (this is the height of the  items in the winforms ListView). if i break the program at that point and check the ImageListBoxControl.GetItemRectangle(0) in the Immediate window, i also get a height of 16.

    but, if i inherit the ImageListBoxControl and call the GetItemRectangle there (usually after a SelectionChanged event), i get a rectangle with a height of 20. what gives? 

Page 1 of 1 (1 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED