wessamzeidan Posted February 13, 2004 Posted February 13, 2004 Hi, I have a toolbar that has buttons with images that are from an imagelist. They appear on the buttons when I run the application, but when I call EnableVisualStyle(), the images disappear. Not only the images on the toolbar disappear but also in a listview I'm using. Does any one know what causes this?? Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
I Schobert Posted February 13, 2004 Posted February 13, 2004 Hey, Are you using VS 1.1? If not, it will not work... Furthermore, you also will have to use either XP Home, or XP Prof., or Win Server 2003... If you are using all of the above, did you try to set the flat-style property to true, for all controls that have such a prop.? If all of this is done, initiate the style with: Application.EnableVisualStyles() In the form initialize event. Let me know if it still doesn't work... Quote IS
wessamzeidan Posted February 13, 2004 Author Posted February 13, 2004 I'm using every thing you mentioned above, the problem is that if I don't initiate the style the images appear, but when I initiate it they disappear. And by the way, toolbars don't have the flat-style property, so I can't set it. Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
I Schobert Posted February 13, 2004 Posted February 13, 2004 WMZ, Sorry, then I don't know the answer. And you are right, flat-style is not one of the options of a toolbar's button object, only Push-, Toggle-, and DropDownButton (plus seperator) are available. I hope someone will be able to give you (and me) the answer. Sorry again Quote IS
I Schobert Posted February 13, 2004 Posted February 13, 2004 Uh, Did you try to set the Appearance property of the toolbar to flat? (I don't have XP) Quote IS
wessamzeidan Posted February 13, 2004 Author Posted February 13, 2004 thanks for the help any way. And yeah, I've tried the Appearance property and it didn't work Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
wessamzeidan Posted February 13, 2004 Author Posted February 13, 2004 Any one else please, its really important......... Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.