A
Antonio Maciel
Hi.
I have a custom control that inherits from an imagebutton and I am trying to
define some designer support for the control. I want to change the default
tag generated for the control from cc1: to idj: but my code seems not to
work. I set the Toolbox attribute before the class:
<ToolboxData("<{0}:idj runat='server'></{0}:idj>")> _
Public Class ImageDJ
Inherits ImageButton
......
......
End Class
I recompile the code but when I drop the control on a form it still appears
as cc1:ImageDJ. I have the two projects inside the same solution for testing
purposes. What am I doing wrong? Also, what exactly is the meaning of the
{0} element on the attribute?
Thanks,
Antonio Maciel
I have a custom control that inherits from an imagebutton and I am trying to
define some designer support for the control. I want to change the default
tag generated for the control from cc1: to idj: but my code seems not to
work. I set the Toolbox attribute before the class:
<ToolboxData("<{0}:idj runat='server'></{0}:idj>")> _
Public Class ImageDJ
Inherits ImageButton
......
......
End Class
I recompile the code but when I drop the control on a form it still appears
as cc1:ImageDJ. I have the two projects inside the same solution for testing
purposes. What am I doing wrong? Also, what exactly is the meaning of the
{0} element on the attribute?
Thanks,
Antonio Maciel