Need help with custom web control...

P

Peter Papanikolaou

Hi,

I created a custom web control in c#. It inherits from WebControl. Here is
my problem:

When inheriting from WebControl it add properties I dont need. So, I
decided to inherit from Control. This works and I dont get all the extra
properties. The problem is when inheriting from Control, the web control
positions itself in the upper left hand corner and cannot be moved. Is
there a way to inherit from Control and add functionality to make it
moveable?

Inheriting from WebControl is not an option because even if I make the extra
properties non browsable, they still show up in the code through
intellisence. I need to derive directly from Control and get this to work.

Thanks,
Pete
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top