Creating custom controls

K

Kyle Fitzgerald

I've started a web control library project and can build
my own controls to add to the toolbox in the .NET
environment. The problem I'm having is I want to create a
control just like the HTML table where I could drag my
control on the page and then drag and drop other controls
into the cells of the table. I've tried creating my own
and I tried to inherit from
system.ui.htmlcontrols.htmltable but I can not get it to
have the borders and cells when I drag my control onto a
form. It just says [xxxTable "xxxTable1"] on the
control. Does anyone have any suggestions on how I might
make a control so developers can drop other controls into
my table control. Also, I'm trying to create my own b/c I
want to limit the functionality a develope can have with
the table and I only want them to start with one row and
two cells.

Thanks in Advance
 
V

Victor Garcia Aprea [MVP]

Hi Kyle,

You'll need to deal with design-time stuff. Take a look at the docs for
everything related to design-time, ie ControlDesigner, etc.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

Kyle Fitzgerald said:
I've started a web control library project and can build
my own controls to add to the toolbox in the .NET
environment. The problem I'm having is I want to create a
control just like the HTML table where I could drag my
control on the page and then drag and drop other controls
into the cells of the table. I've tried creating my own
and I tried to inherit from
system.ui.htmlcontrols.htmltable but I can not get it to
have the borders and cells when I drag my control onto a
form. It just says [xxxTable "xxxTable1"] on the
control. Does anyone have any suggestions on how I might
make a control so developers can drop other controls into
my table control. Also, I'm trying to create my own b/c I
want to limit the functionality a develope can have with
the table and I only want them to start with one row and
two cells.

Thanks in Advance
 
K

Kyle Fitzgerald

Thanks for the tip Victor, heading that way now!
-----Original Message-----
Hi Kyle,

You'll need to deal with design-time stuff. Take a look at the docs for
everything related to design-time, ie ControlDesigner, etc.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

I've started a web control library project and can build
my own controls to add to the toolbox in the .NET
environment. The problem I'm having is I want to create a
control just like the HTML table where I could drag my
control on the page and then drag and drop other controls
into the cells of the table. I've tried creating my own
and I tried to inherit from
system.ui.htmlcontrols.htmltable but I can not get it to
have the borders and cells when I drag my control onto a
form. It just says [xxxTable "xxxTable1"] on the
control. Does anyone have any suggestions on how I might
make a control so developers can drop other controls into
my table control. Also, I'm trying to create my own b/c I
want to limit the functionality a develope can have with
the table and I only want them to start with one row and
two cells.

Thanks in Advance


.
 

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,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top