Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button Image Not Displaying
Message
 
À
19/07/2004 16:58:10
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00925934
Message ID:
00926140
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform