473,473 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TemplateContainer attribute - Flexible?

Hi -

I want to build a templated control that can change types of the template at
runtime. Possible?

I would need to have TemplateContainer be a type that's either an abstract /
inherited type or be changeable at runtime, but I'm not sure I can have
either.

Any thoughts? I realize the obvious workaround is to inherit the control
and override the template container property to have that type, but... I'd
really rather do it the above ways if possible.
Thanks!

Jim Ankrom
Nov 18 '05 #1
1 1392
See the container control. If I remember its templates are just classes that
implements a particular interface (ITemplate ?).

Patrice

--

"cosine... zero" <no****@nospam.net> a écrit dans le message de
news:R03Cc.7412$HN5.6665@lakeread06...
Hi -

I want to build a templated control that can change types of the template at runtime. Possible?

I would need to have TemplateContainer be a type that's either an abstract / inherited type or be changeable at runtime, but I'm not sure I can have
either.

Any thoughts? I realize the obvious workaround is to inherit the control
and override the template container property to have that type, but... I'd
really rather do it the above ways if possible.
Thanks!

Jim Ankrom

Nov 18 '05 #2

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

Similar topics

22
by: Haines Brown | last post by:
I have a document with a set of internal links such as: <a name="Z1"></a>... <a name="Z2"></a>... The W3C validator objects to the first instance of the name attribute: There is no attribute...
10
by: Adam Warner | last post by:
Hi all, With this structure that records the length of an array of pointers as its first member: struct array { ptrdiff_t length; void *ptr; };
2
by: Christopher Benson-Manica | last post by:
Is the following program conforming under C99? #include <stdio.h> typedef struct foo { int bar; int baz; } foo; foo foos={
2
by: DevarajA | last post by:
Can someone help me understand what flexible array members exactly are, how they behave and how could them be implemented by a i386? Also I didn't understand the two exceptions that the standards...
2
by: Steve Richter | last post by:
trying to understand how to support templates in server controls ... a few quick questions on the following snippet of code pulled from a server control class: ITemplate _headingStyle; ...
3
by: Frustrated Newbie via DotNetMonster.com | last post by:
I need to get the values of an attribute of each of three objects that I've stored in an arraylist. Each object has three values, and one of those values is an integer. I'm able to "get" the...
1
by: robseflops | last post by:
Hi! I have a Asp.net 2.0 application that uses a masterpage. It works fine on the development machine but when I move the app to a Win 2003 server thinks go wrong: When I navigate to a page that...
20
by: mechanicfem | last post by:
I thought (as they're in c99) that flexible arrays were there for a number of reasons - but I also thought they'd be great for stepping into structures (say) that were aligned in memory after (say)...
0
by: Alexander Widera | last post by:
hi, normally i create a template-property for a custom control this way: public ITemplate TheTemplate
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.