ToolboxData attribute

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top