Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

I am using Application.EnableVisualStyles() followed by a doevents.

 

When the program starts, there is a treeview docked on the form that contains a scrollbar on the bottom, which should not be there (there is not enough content in the treeview to require it). Additionally, the scrollbar does not use XP styles. When the treeview is resized to a size small enough that a scrollbar becomes necessary, the scrollbar partially takes on Xp styles. When the treeview is made larger again, the scrollbar finally dissapears. After this point, the scrollbar behaves as expected, visually as well as in the fact that it is only there when necessary.

 

The workaround I have used in the past is to set the treeview width to 1 and then back to the original size after the form is shown. This doesn't look so great though, the form flickers for a split second when it is shown.

 

Does anyone know a workaround or a property that can be modified to correct behavior?

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...