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.htmlc ontrols.htmltab le 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 3 1945
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.htmlc ontrols.htmltab le 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 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.htmlc ontrols.htmltab le 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 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.htmlc ontrols.htmltab le 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 submitted the same Query but i got replay for user
controls,but my requirement is not that one.My requirement is Custom web
controls.
|
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 straightforward and dare I say
intuitive? (well, as intuitive as you can get w/ MFC.)
Anyhow, I am wanting to create some controls of my own w/
C#. I'm not quite sure where to start though. I created
a Windows Control library project, and I get
a...
|
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 fine until I try to
put some ASP.NET processing code in-between the tags.
For example:
This works fine. The control executes and displays everything just
|
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 I am hoping someone can help
clear up.
1. What is the difference between initializing a control in the
constructor, vs the OnInit(), vs the CreateChildControls() methods?
2. The control that I created contains an Items collection attribute...
|
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 rendered so i can write them all at my
webcontrol Render method
that is my though of implemeting that please someone suggest a proper
way of doing it
| |
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 created properties to
map onto my calendar UI properties like TodayDayStyle, DayStyle,
NextMonthStyle, but I think I should add attributes to these properties
to make my control more useable when I will insert it in my pages.
For example, I've...
|
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 accept other controls. The
control i drag drop on it becomes the child of my custom control's
parent form and not the child of my custom control. Then i added this
line
""
before my custom control class (i dont know what this line does). Now
|
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
controls.
Only problem is that I'm used to designing my controls in a WYSIWYG
(tm) way (i.e. using the designer and writing HTML tags). The only way
I found to create custom controls was to create controls dynamically,
set their properties and...
|
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 unique, much like this (although this screenie doesn't show any, I intend to have buttons, and sliders and various other regular controls as well):
http://www.tok2.com/home/avionics/msfsx/main1.jpg
I've searched for 'Custom UI' in the help files,...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |