473,554 Members | 5,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HOWTO: Make a container control?

How can I make a control that acts like a container control (besides from
inheriting from panel) ?

Best Regards,
Alejandro Lapeyre
Jul 21 '05 #1
11 7700
"Container" is a bit vague. If you are talking about naming containers, they
are created by using the INamingContaine r marker interface...

Patrice

--

"Alejandro Lapeyre" <Al************ **@jotmail.com> a écrit dans le message
de news:er******** ******@TK2MSFTN GP14.phx.gbl...
How can I make a control that acts like a container control (besides from
inheriting from panel) ?

Best Regards,
Alejandro Lapeyre

Jul 21 '05 #2
Well, I mean a Form Control that I can add children Controls to. Like the
Panel Control.

Thanks.

Best Regards,
Alejandro Lapeyre
"Patrice" <no****@nowhere .com> escribió en el mensaje
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
"Container" is a bit vague. If you are talking about naming containers,
they
are created by using the INamingContaine r marker interface...

Patrice

--

"Alejandro Lapeyre" <Al************ **@jotmail.com> a écrit dans le message
de news:er******** ******@TK2MSFTN GP14.phx.gbl...
How can I make a control that acts like a container control (besides from
inheriting from panel) ?

Best Regards,
Alejandro Lapeyre


Jul 21 '05 #3
On Wed, 30 Mar 2005 09:34:23 -0300, Alejandro Lapeyre wrote:
Well, I mean a Form Control that I can add children Controls to. Like the
Panel Control.


Than you have to create a UserControl.

Here http://visualbasic.about.com/od/usin.../aa082503a.htm you can
find a short tutorial (in VB.NET).

hth

--
Claudio Grazioli
http://www.grazioli.ch
Jul 21 '05 #4
This collection is inherited from System.Windows. Forms.Control. All controls
should have this one.
http://msdn.microsoft.com/library/de...trolstopic.asp

Try also :
http://samples.gotdotnet.com/quickst...gControls.aspx

I believe you are after the "User Controls" sample... (my understanding is
that you would like to combine several existing controls in your own control
?).

Patrice

--

"Alejandro Lapeyre" <Al************ **@jotmail.com> a écrit dans le message
de news:ev******** ******@TK2MSFTN GP14.phx.gbl...
Well, I mean a Form Control that I can add children Controls to. Like the
Panel Control.

Thanks.

Best Regards,
Alejandro Lapeyre
"Patrice" <no****@nowhere .com> escribió en el mensaje
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
"Container" is a bit vague. If you are talking about naming containers,
they
are created by using the INamingContaine r marker interface...

Patrice

--

"Alejandro Lapeyre" <Al************ **@jotmail.com> a écrit dans le message de news:er******** ******@TK2MSFTN GP14.phx.gbl...
How can I make a control that acts like a container control (besides from inheriting from panel) ?

Best Regards,
Alejandro Lapeyre



Jul 21 '05 #5
If I inherit from UserControl I cannot add controls to my UserControl at
design time.

Best Regards,
Alejandro Lapeyre
Jul 21 '05 #6
On Wed, 30 Mar 2005 12:09:31 -0300, Alejandro Lapeyre wrote:
If I inherit from UserControl I cannot add controls to my UserControl at
design time.

Best Regards,
Alejandro Lapeyre


So what's wrong with the panel control then?

I think you could create a UserControl and implement your own designer
support.

I recommend to look at the XPCC controls library
(http://www.steepvalley.net/dev/projects.aspx).

It's open source and there is a TaskPane control that I think does exactly
what you want. It's kind of a panel, but inherited from UserControl and
supports design time.
--
Claudio Grazioli
http://www.grazioli.ch
Jul 21 '05 #7
Was starting to suspect something similar....

This is likely done with "designers" . See around :
http://msdn.microsoft.com/library/de...omdesigner.asp

And in particular this one :
http://msdn.microsoft.com/library/de...classtopic.asp

Good luck.
Patrice

--

"Alejandro Lapeyre" <Al************ **@jotmail.com> a écrit dans le message
de news:uk******** ******@TK2MSFTN GP15.phx.gbl...
If I inherit from UserControl I cannot add controls to my UserControl at
design time.

Best Regards,
Alejandro Lapeyre

Jul 21 '05 #8
What I want to do is a Control similar to the Tab control. but without tabs.

I want to use it for Wizard like forms.

Thanks for the input, I will check your postings.

Best Regards,
Alejandro Lapeyre

"Claudio Grazioli" <ne********@g mx-ist-cool.de> escribió en el mensaje
news:16******** *************** ******@40tude.n et...
On Wed, 30 Mar 2005 12:09:31 -0300, Alejandro Lapeyre wrote:
If I inherit from UserControl I cannot add controls to my UserControl at
design time.

Best Regards,
Alejandro Lapeyre


So what's wrong with the panel control then?

I think you could create a UserControl and implement your own designer
support.

I recommend to look at the XPCC controls library
(http://www.steepvalley.net/dev/projects.aspx).

It's open source and there is a TaskPane control that I think does exactly
what you want. It's kind of a panel, but inherited from UserControl and
supports design time.
--
Claudio Grazioli
http://www.grazioli.ch

Jul 21 '05 #9
THANKS!

The ParentControlDe signer Class looks promising.

Best Regards,
Alejandro Lapeyre

"Patrice" <no****@nowhere .com> escribió en el mensaje
news:uc******** ********@TK2MSF TNGP12.phx.gbl. ..
Was starting to suspect something similar....

This is likely done with "designers" . See around :
http://msdn.microsoft.com/library/de...omdesigner.asp

And in particular this one :
http://msdn.microsoft.com/library/de...classtopic.asp

Good luck.
Patrice

--

"Alejandro Lapeyre" <Al************ **@jotmail.com> a écrit dans le message
de news:uk******** ******@TK2MSFTN GP15.phx.gbl...
If I inherit from UserControl I cannot add controls to my UserControl at
design time.

Best Regards,
Alejandro Lapeyre


Jul 21 '05 #10

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

Similar topics

0
1313
by: Ken Seier | last post by:
Hello, I'm trying to create a fairly standard custom container control by using the ScrollableControlDesigner attribute. My control has a title bar at the top, and I would like to exclude the title bar area from the container client area in both the designer and at run time so that adding contained controls or using docking does not...
0
1720
by: pepsi | last post by:
Hello, I would suggest a simple div tag... you could assign it a id and runat server. It should work. pepsi >-----Original Message----- >Hi gang. I tried posting this under a different topic
11
400
by: Alejandro Lapeyre | last post by:
How can I make a control that acts like a container control (besides from inheriting from panel) ? Best Regards, Alejandro Lapeyre
0
1011
by: Michael Dawson | last post by:
I am wanting to create a container control like the .net library's Panel control, but i don't know how to implement something like this. I needs one that has a label on the left hand side and the rest will contain various other controls which will be dragged in. I have tried to implement this by creating a custom control containing a panel,...
0
1042
by: brosembob | last post by:
Hello there, I'm writing a plugin Dll (C#) to be used with application written in unmanaged C++. The plugin has an interface function that the unmanaged application is calling. One of the passed arguments is IntPtr to a container control, possibly a tab control. I have to add a few controls to be displayed on the container control. How, if...
1
2223
by: mnuckols | last post by:
I am trying to create a custom container control for Windows Forms using C#.NET 2.0. My problem is that I want only part of the control to allow other controls to be placed on it at design time. A similar example to what I'm trying to accomplish is a Tab Control. The tab pages of a tab control allow child controls to be added to the page...
0
1055
by: PJ6 | last post by:
Does anyone know of a good, simple example of a custom server-side (2.0) container control, where you can drag drop other controls into an editable region, and what you see at design time is what you get at runtime? Paul
5
4091
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container>...
1
26530
GaryTexmo
by: GaryTexmo | last post by:
In my last insight, http://bytes.com/topic/c-sharp/insights/909141-object-scaling-varying-resolutions, I talked about scaling objects to a form's size so that it would always draw with the correct scale. In that, the method I used to create and store objects that could be drawn on my form was a manual approach; that is, I created and stored a list...
0
7580
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7503
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...
0
7781
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, 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. ...
0
8017
jinu1996
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...
1
7538
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...
1
5421
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5140
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3543
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1113
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.