|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TreeView with XP themes errorWhen I enable XP themes using EnableVisualStyles(), the treeview control on
my form displays an old style 3D scrollbar when the form loads if items are added to the treeview at design time. Does anybody know a workaround? Regards JB "JB" <gatulatsofthomedotcom> schrieb: Add the items at runtime.> When I enable XP themes using EnableVisualStyles(), the treeview control > on my form displays an old style 3D scrollbar when the form loads if items > are added to the treeview at design time. > > Does anybody know a workaround? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message ....or resize the treeview at form load (set width to 0 then reset).news:uw0HjpKfFHA.584@tk2msftngp13.phx.gbl... > "JB" <gatulatsofthomedotcom> schrieb: >> When I enable XP themes using EnableVisualStyles(), the treeview control >> on my form displays an old style 3D scrollbar when the form loads if >> items are added to the treeview at design time. >> >> Does anybody know a workaround? > > Add the items at runtime. > A nasty workaround I know, but you shouldn't actually see it resize. Mick,
"Mick Doherty" <EXCHANGE#WITH@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> schrieb: >>> When I enable XP themes using EnableVisualStyles(), the treeview control Great trick :-).>>> on my form displays an old style 3D scrollbar when the form loads if >>> items are added to the treeview at design time. >>> >>> Does anybody know a workaround? >> >> Add the items at runtime. > > ...or resize the treeview at form load (set width to 0 then reset). > > A nasty workaround I know, but you shouldn't actually see it resize. Hopefully we will see this problem fixed in the final release of .NET 2.0: <URL:http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=42983f95-9cfd-4616-9744-e6d3766c40e9> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Other interesting topics
Inherited Menus and Modifiers
All MDI forms repaint when one is resized Dialog ghost left on window Editing hyperlinks in RichTextBox Control in C#.NET GridView Exception: reentrant call to the SetCurrentCellAddressCore function Screen.PrimaryScreen.WorkingArea question Pencil icon in the datagrid Search combobox attaced to datagrid Manually adding usercontrol to panel on form Form TopMost property even appears over windows taskbar |
|||||||||||||||||||||||