|
-
May 20th, 2004, 03:16 PM
#1
Thread Starter
Lively Member
Question for a champion !
I have a question, I added the line application.enablevisualstyles() and put all my button on 'System' as Flatmode property.
It work fine (they have the XP look), until I add a WebBrowser control on the poage, it cause them to comeback to 98 style.
What's the prob ? Can someone give a solution to prevent this bug when you add a WebBrowser on a application.
Note : It disable XP Style boutton over all the application even on form without Webbrowser.
Thanks for help
-
May 20th, 2004, 04:34 PM
#2
where are you putting the EnableVisualStyles call?
to combat problems with visualstyles / some controls , you need to put the call before InitializeComponent and add an " Application.DoEvents() "
eg:
VB Code:
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
'///
'/// put the call here to enable styles .....
Application.EnableVisualStyles()
Application.DoEvents()
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
May 21st, 2004, 04:01 AM
#3
Thread Starter
Lively Member
I put the DoEvent() it's exactly like in your exemple but it doesn't work. Button aren't back in XP Style.
Thanks anyway, anymore idea ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|