Creating custom controls

  • Thread starter Thread starter Kyle Fitzgerald
  • Start date Start date
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
 
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
 
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


.
 
Back
Top