Usercontrol custom icon in toolbar VS2008 C#
I have created usercontrol and i can see in toolbar but my own icon or bitmap image is not displaying for usercontrol. I have already used [ToolboxBitmap(typeof(MyUserControl), "MyIcon.icon")] but still default icon is displayed. I have also set Build Action of image to embedded resource. Regards

Zoran HorvatRank #792 · 2.9K reputationPosted Jul 13, 2011, 7:01 AM EDT
Zoran
Sam HobbsRank #107 · 20.5K reputationPosted Jul 13, 2011, 11:49 AM EDT
Shahzad Chaudhry8 reputationPosted Jul 13, 2011, 11:01 PM EDT
Shahzad Chaudhry8 reputationPosted Jul 14, 2011, 3:00 AM EDT
Now i have created new simple solution and tried to implement custom icon for usercontol in toolbar but only default gear icon is displayed here is the sample application in VS2008.
Reagrds,
Shahzad