Hi!
I've created a UI control that adds(Creates) or subtracts(Destr oys) standard buttons on a panel. I want to have each of these created buttons become accessible as UI elements, just as the custom control itself is, so that if the control has been defined by property to have 2 buttons, then the buttons themselves have standard properties accessible to the user of the control, so things like color, etc... as well as events can be tied specifically to each of these dynaimcally created child controls. Any suggestions?
This is much like a Tabbed Dialog control, where when you add a tab, all the properties and methods available are there for each tab you add.
Chris Monro
chris_monro@yah oo.com
2 1138
Their is a Page.Comtrol property where you can go throuh all the controls of the page and modifying them...
Their is a Page.Comtrol property where you can go throuh all the controls of the page and modifying them...
I guess what I was asking about wasn't clear. When you use a standard MS "Tab Control", the moment you drop it onto your form, it creates the tab control, and 2 tab pages. Both the control, and the two tab pages are created as independant, addressable objects in the UI, and in code... the "Tabs" property of the "Tab Control" displays "(Collectio n") as the property value, with the elipsis (...) button, and opens a dialog that lets you set the properties of each of the tab pages, as well as add and remove them.
That's what I want to accomplish with my control. It's a panel, that has a variable number of buttons, which should each be addressable. SO I have a property called "Buttons" which I want to show (Collection) as the value, and then open the dialog allowing add/remove/edit of each button.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Henke |
last post by:
Hi!
I add some web user controls dynamicly with:
myPanel.Controls.Add(Page.LoadControl("MyDynamiclyAddedPage.ascx"));
the style of the controls on the user control is set from a css-class, by
setting the CssClass-property, but they doesn't display properly.
If the user control is added at design time everything looks correct.
|
by: Mikip |
last post by:
Hi,
I have some properties that are common to all pages so I have created a base
class which every page inherits from. I now also want to use these
properties within User Controls on the page. Is there any way to get to
these properties through the parent property of the user control - I can't
seem to figure out how to get there. If I can't do this, do I have to do the
same thing as the page and create a base user control class with the...
|
by: Brian |
last post by:
NOTE ALSO POSTED IN
microsoft.public.dotnet.framework.aspnet.buildingcontrols
I have solved most of my Server Control Collection property issues.
I wrote an HTML page that describes all of the problems that I have
encountered to date and the solutions (if any) that I found.
http://users.adelphia.net/~brianpclab/ServerControlCollectionIssues.htm
This page also has all of the source code in a compressed file that you are
free to download...
|
by: Henke |
last post by:
Hi
I have a aspx-page with a panel-control. On this panel control I add user
controls dynamicly with LoadControl and panel.Controls.Add(myControl).
On some of the dynamicly added user controls I have button's and handlers
for the click event.
Why doesn't the event get fired in the dynamicly added control?
Thanks!
|
by: Vivek Sharma |
last post by:
Hi There,
I have a situation where I wish to load the controls dynamically on the
basis of user role. Hence, I am using this code.
if (UserRole == "IS Administrator")
{
Control UC1 = LoadControl("../UserControls/ISJob/uctlJobGeneral.ascx");
| |
by: Wayne Sepega |
last post by:
I have the following Code:
foreach (MyClass d in myClassCollection)
{
curRadioBtn = new RadioButton();
curRadioBtn.Text = d.ToString();
curRadioBtn.GroupName = "Contact";
curRadioBtn.ID = d.Name;
curRadioBtn.EnableViewState = true;
curRadioBtn.CheckedChanged += RadioButton_CheckedChanged;
|
by: |
last post by:
I have made some user controls with custom properties. I can set those
properties on instances of my user controls, and I have programmed my user
control to do useful visual things in response to how those properties are
set.
I want to be able to do two other things:
a) add User control instances to my page, filling in the place of
placeholder controls, and
b) programmatically setting custom properties on those dynamically spawned...
|
by: =?Utf-8?B?Q2hyaXN0aWFuIFdlaW5lcnQ=?= |
last post by:
Hello,
I currently fight with a problem during the derivative of WinForm controls.
In Visual Studio I created a new User Control. This control is derived from
the DataGridView of the System.Windows.Forms namespace. I want to use this
control as a template for futher controls. Within this control i want to set
some property values to be pre-defined for further derived controls.
My base class looks like this:
|
by: Web Search Store |
last post by:
Hello,
I set up a web page with 2 user controls.
In classic asp, the first one did all the declarations, and the second one
used the values, and could reset it.
In ASP.Net so far I can't see how to relate them so this will work.
This user control defines the properties:
|
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: 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: 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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |