O
OpticTygre
I have a control I built, for which I would like to add a tool bar icon, but
for some reason, it's not working correctly.
There is no default namespace (I removed it from the properies page of the
project), and the icon file has been included in the project and it's build
option is set to "Embedded Resource."
The only thing I can think of that could be messing it up (but I'm not sure)
is that the class file and the icon file are in subfolders in the project
itself. Other than that, when I compile, and add the DLL to the Toolbox, it
comes up with the standard gear control icon instead of the icon I chose.
Any ideas?
Code is this:
Namespace OS.WinForms.Controls
<ToolboxBitmap(GetType(OS.WinForms.Controls.ProgressBar),
"ProgressBar.ico")> _
Public Class ProgressBar
Inherits System.Windows.Forms.Control
...yadda yadda yadda...
End Class
End Namespace
Thanks for any help.
-Jason
for some reason, it's not working correctly.
There is no default namespace (I removed it from the properies page of the
project), and the icon file has been included in the project and it's build
option is set to "Embedded Resource."
The only thing I can think of that could be messing it up (but I'm not sure)
is that the class file and the icon file are in subfolders in the project
itself. Other than that, when I compile, and add the DLL to the Toolbox, it
comes up with the standard gear control icon instead of the icon I chose.
Any ideas?
Code is this:
Namespace OS.WinForms.Controls
<ToolboxBitmap(GetType(OS.WinForms.Controls.ProgressBar),
"ProgressBar.ico")> _
Public Class ProgressBar
Inherits System.Windows.Forms.Control
...yadda yadda yadda...
End Class
End Namespace
Thanks for any help.
-Jason