473,395 Members | 1,956 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,395 software developers and data experts.

DesignTime-Support for self-defined value list - how to do that?

I am implementing an Extension control that provides other Controls
with a set of properties.
One of the properties should be a list of values that is configurable
by the user (aka developer).

The Extension control itself has a collection property where the user
can specify the values that should be allowable for the extension on
the other controls.
I am able to provide the VS Designer with that list in Design mode when

the method ITypeDescriptor.GetStandardValues() is called with a valid
conext as parameter. There I retrieve my own Extender control and query

it for the current list of allowed values.
But when I work in Markup, the type descriptor is called with an empty
context ('null').
How can I retrieve the current list of property values from my extender

control when in markup mode?
Below is a snippet of the markup for my extender control
<my:Extender ID="extender1" runat="server">
<AllowedValues>
<my:AllowedValue name="one" value="1"/>
<my:AllowedValue name="two" value="2"/>
<my:AllowedValue name="three" value="3"/>
</AllowedValues>
<ExtensionsProvided>
<my:ExtensionProvided ControlId="ctl1" Preset="one"/>
</ExtensionsProvided>
When I open this markup, delete the '="one"' behind Preset and press
the '=' key, I get an intellisense list which should contain 'one',
'two' and 'three', but the list is always empty...
Any ideas?
Guenter from Frankfurt/Germany

Nov 6 '06 #1
0 984

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

Similar topics

0
by: Rahail | last post by:
Hello, I have a question, can someone help me please? What are the differences between a runtime and a designtime component? Is runtime component only good for running with the .exe and not...
1
by: dan | last post by:
I am working in C#. I want to know how I can get the extras to show up on the intellisense mouseovers. I get a name and type of the property like private string textbox.font But I do not get...
1
by: Sky Sigal | last post by:
Hello: Is there a way to get the path of the current website I am working on during designTime (when current Context == null)? System.Web.HttpRuntime.AppDomainAppPath is not available during...
3
by: greg.bacchus | last post by:
Hi, If I make a control, I want to be able to make it so that various properties are not initialised by the designer. I realise that if you put that it won't show up in the properties...
7
by: W1ld0ne [MCSD] | last post by:
When you work in VB.Net and you reference a component. The your create an object to represent the component. Then if the outocomplete feature shows you a list of available methods in the class,...
5
by: Pieter | last post by:
Hi, I'm getting a really terrible and anoying bug/problem in VS.NET 2005: 1. Create a new Windows Application. 2. Add a new class Class1. 3. Add a usercontrol UserControl1. 4. Add a public...
0
by: Mike | last post by:
Hi. I want to refresh the design time control html when a property is changed. I've used NotifyParent(true) attribute but doesn't work. My control inherit from System.Web.UI.Control. How can i...
7
by: Varangian | last post by:
Hello is creating controls at runtime the same as designtime ? will a page be faster if controls are created at designtime rather than at runtime ? If so why ? thanks :)
1
by: A.Neves | last post by:
Hi, I'd like to have my ConnectionString retrieved from the same place in RunTime or in DesignTime (in VS2005). Is It possible? How? Any help would be very much appreciated. Thanks.
0
by: Steve | last post by:
I'm struggling to get proper runtime and designtime dpi values. In the forms .designer.vb I've added the following code after InitializeComponent() Me.AutoScaleDimensions = New...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...

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.