Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button Image Not Displaying
Message
 
To
19/07/2004 16:58:10
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00925934
Message ID:
00926140
Views:
19
Joe,

>I have added an mmButton to a user control which includes the mmButton and an imagelist. The imagelist and imageindex properties have been set on the button. At first I couldn't get any image to display and then discovered that it had to do with the FlatStyle property. When I changed it to "standard" I got the image to display on the button in design view of the user control.
>
>The problem occurs when this contol is dropped on a form. The image does not display in either design or runtime. Any ideas?

Unfortunately, the standard Windows Forms buttons do not support images when set to FlatStyle.System.

At any rate, I just tried this and it worked fine for me...I'm not sure what's going on here. Have you tried adding the image file to your project as an embedded resource?

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform