Form loses xp theme with WebBrowser object
-
Hi! I Have a form with several objects with the XP theme (Application.EnableVisualStyles()) and When i add a WebBrowser object all the previous objects are showed with the normal appearence. Does anyone know anything about this? I've read that the webBrowser object isn't "themeble" but it seems to be affecting my app. If i launch a new form from the first form (and the first form doesn't possess a webBrowser object) with several objects and a webBrowser object then, in the new form all the objects(but the browser) have XP appearence. This is very strange.Can anybody help me??? I'm going crazy... :P Never say never
-
Hi! I Have a form with several objects with the XP theme (Application.EnableVisualStyles()) and When i add a WebBrowser object all the previous objects are showed with the normal appearence. Does anyone know anything about this? I've read that the webBrowser object isn't "themeble" but it seems to be affecting my app. If i launch a new form from the first form (and the first form doesn't possess a webBrowser object) with several objects and a webBrowser object then, in the new form all the objects(but the browser) have XP appearence. This is very strange.Can anybody help me??? I'm going crazy... :P Never say never
There's a bug in VB.Net where it won't theme your form if certain controls are present such as a toolbar. Calling DoEvents() right after EnableVisualStyles() makes it work. Example:
' Enabling visual styles turns on WinXP theme support. ' XP theme won't be shown unless you call DoEvents() right after. Works-around an MS bug. Application.EnableVisualStyles() Application.DoEvents()
-
There's a bug in VB.Net where it won't theme your form if certain controls are present such as a toolbar. Calling DoEvents() right after EnableVisualStyles() makes it work. Example:
' Enabling visual styles turns on WinXP theme support. ' XP theme won't be shown unless you call DoEvents() right after. Works-around an MS bug. Application.EnableVisualStyles() Application.DoEvents()
Thanks a lot.Major bug in vb .NET. where do u get the answers for these things? :D Never say never
-
Thanks a lot.Major bug in vb .NET. where do u get the answers for these things? :D Never say never
carlos_rocha wrote: where do u get the answers for these things? Oh, I just searched the Internet. A lot of people ran into this issue. Including myself. I hope it worked out for you! Good luck! :)