473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Creating custom controls

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
Nov 17 '05 #1
3 1907
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" <ky*************@litton.c-bass.com> wrote in message
news:01****************************@phx.gbl...
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

Nov 17 '05 #2
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 foreverything 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 newsgroupand not by private mail.

"Kyle Fitzgerald" <ky*************@litton.c-bass.com> wrote in messagenews:01****************************@phx.gbl...
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

.

Nov 17 '05 #3
Hi Kyle,

You need to create a Custom Designer class for your control. Here is the URL
of an article in the .Net SDK on developing Custom Designer classes:

http://msdn.microsoft.com/library/de...omdesigner.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Kyle Fitzgerald" <ky*************@litton.c-bass.com> wrote in message
news:01****************************@phx.gbl...
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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jai | last post by:
Dear All Creating Custom Controls but Not User Controls,How to create custom controls,i.e Extending the functionality of the Existing Controls.(Web Custom Controls). Previously i have...
2
by: Jim | last post by:
I'm a little new to the C# way of doing thisgs... Although I've done this sort of thing before in VS 6 / MFC... creatnig controls, ActiveX controls, etc. Creating controls in MFC is pretty...
0
by: Scott Yenor | last post by:
Hello, I am writing a control library that has a control that inherits from System.Web.UI.Control. The control works fine and I am able to loop through the child controls and display everything...
3
by: Ken Varn | last post by:
I am just starting the process of creating ASP.NET server controls. I have created controls for .NET applications, but have just started with ASP.NET. I am a little confused about some areas that...
1
by: tolisss | last post by:
Hi i m trying to find a way to create a user control that will have a mix of server controls but i cannot find a way to get the html that these controls are going to render before my control is...
0
by: Julien | last post by:
Hi ! I'm creating a custom control, in which I would render an image with client-side script code to display/hide a calendar control which also belong to my custom control. In this control I've...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom...
0
by: str1ker | last post by:
Hi, I've been working with C# for quite a while now, and I'd like to start creating programs which aren't the usual old regular Windows controls. I'd like to have controls which are graphically...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.