Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi .
I want to change icon for a usercontrol .This's my code ;
VB
 <System.Drawing.ToolboxBitmap("E:\Ok.ico")> _
Partial Class UserControl1

But it has not changed , how can I do?

[edit]"Treat my content as plain text..." option disabled - OriginalGriff[/edit]
Posted
Updated 8-Oct-11 22:25pm
v2

1 solution

Create your icon as a BMP file instead: 16x16 in 16 colours - that should cure the problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900