I don`t find answer anywhere, so I ask here:I trying to draw column header`s sort arrow visual style using VisualRenderer but I always geting exception 'Given combination of Class, Part, and State is not defined by the current visual style'.
That`s my code:
VisualRenderer = new VisualStyleRenderer(VisualStyleElement.Header.SortArrow.SortedDown);
VisualRenderer.GetPartSize(Graphics, ThemeSizeType.True));
Note that with other visual styles all fine.
Internet don`t tell me where`s the problem...
Can anyone tell me what I missed ?
P.S. Win XP SP2, VS 2005 SP1, .NET 2.0
Thanks!