Intellisense for custom controls.

  • Thread starter Thread starter Nick Kafenzakis
  • Start date Start date
N

Nick Kafenzakis

Hi,

I am thinking about creating some custom server controls
in Visual Studio .NET 2003 using VB.NET. One thing I am
wondering about is how I can get the control to show up in
the IDE....for example right now when I hit '<' i get a
list of controls like <asp:(somecontrols)>. I was
wondering if there is a way so that when i hit '<' I will
also get a list like <mycompany:(mycustomcontrols)>. Any
pointers or documentation would be great.

Thanks in advance,

Nick
 
You can definitely get things to appear in intellisense. Public properties
show up, and you can use attributes to give the user feedback, (Description
and Category). if the property is indexable, then the Items tab will show
up automatically. Once you create the control and add it to your toolbox,
or reference it (if you don't want to use a designer), intellisense should
kick in.
 
Thanks for your reply but when i compiled my control and
added a reference to it and added it to the toolbox I
still couldn't get intellisense to display it as a
control. I may not have been clear in the last post but
i'm talking about intellisense in the HTML part of the
designer not in the actual VB code (this seems to work
fine). I have the public property. One question I have
is that if I add a reference to it do I still need the
"<%@ Register" tag?

thanks again.

Nick
 
Back
Top