P
Pascal
Hi all,
I'd tried to follow the instructions from msdn for adding icon image for a
control. I've checked the name of bmp file is same as the control name
and turn the bmp file to "Embedded Resource". After building the project
again, the icon of my user control is the same as default. I'm not sure it's
related to my VB.Net version is an express edition or not? Anyone know
what's wrong ?
I did this :
Created a 16 x 16 pixd (256 colors)
gave it the name of the class (MonLabel->
"MonLabel.bmp"). Then added the bitmap to the project and set its build
action to embedded resource.
Extended my code like this:
Imports System.ComponentModel
<ToolboxBitmap(GetType(MonLabel), "MonLabel.bmp")> _
Public Class MonLabel
Inherits Windows.Forms.Label
Thanks
pascal
I'd tried to follow the instructions from msdn for adding icon image for a
control. I've checked the name of bmp file is same as the control name
and turn the bmp file to "Embedded Resource". After building the project
again, the icon of my user control is the same as default. I'm not sure it's
related to my VB.Net version is an express edition or not? Anyone know
what's wrong ?
I did this :
Created a 16 x 16 pixd (256 colors)
gave it the name of the class (MonLabel->
"MonLabel.bmp"). Then added the bitmap to the project and set its build
action to embedded resource.
Extended my code like this:
Imports System.ComponentModel
<ToolboxBitmap(GetType(MonLabel), "MonLabel.bmp")> _
Public Class MonLabel
Inherits Windows.Forms.Label
Thanks
pascal