# [.net] The shonky TreeView control strikes back with more theme bugs

## Recommended Posts

benryves    1999
I'm using Skybound to try and fix the issues on my form, and it's looking pretty good: ...it's just that the scrollbars on the TreeView control are deciding to hate me. [sad] I've added the control to my form, and have this in my Main() function:
[STAThread]
static void Main() {
Skybound.Visualstyles.VisualstyleProvider.EnableVisualstyles();
Application.DoEvents();
Application.Run(new frmMain());
}
...but it doesn't seem to do much. Does anyone know of a reliable way to fix these peculiar XP theme bugs?

##### Share on other sites
I dont understand what your problem is. Are you saying the fact there is a horiz scroll bar? Or am I missing something...

##### Share on other sites
benryves    1999
Quote:
 Original post by JustaddwaterI dont understand what your problem is. Are you saying the fact there is a horiz scroll bar? Or am I missing something...
The arrows on the horizontal scroll bar are grey and not themed, whereas the rest of the bar is blue and XP themed correctly.

##### Share on other sites
xanin    433
Yeahhhh, uhm, I couldn't even begin to tell you. I've had so many problems with themes in .net apps that are apparently random in origin. Good luck - oh and thanks for pointing out skybound, I think I'll be looking into using that myself.