Re: using the Items property in the design time property window

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chad (cwortham_at_yahoo.com)
Date: 02/08/05


Date: 8 Feb 2005 08:24:05 -0800

Ryan,

I'm sorry I don't have the answer, but I'm in the same boat. The native
types like string and ints seem to be handled correctly. But I've got a
property that holds a string array and a property that points to
another control. I can fill these properties in at design time, but
when I run the values in the properties are lost. Which I think is the
same problem you are having. Yep lots of examples on properties of
strings and ints, but I've been looking as well for a more complicated
example and don't see any. Hopefully there will be some reading that
has the answer. If you find the answer please post back to let me know.

Thanks ...

Ryan Taylor wrote:
> I hope this is the proper forum. I posted this problem in the wrong
one
> previously. I have a custom server control that I am building.
Implementing
> simple properties like strings and ints seems to be pretty
straightforward
> and there are a lot of examples. However, I have a need to allow the
user to
> add multiple items. Each item would be a custom class that contains a
few
> properties, id, name etc. I cannot seem to get this functionality to
work,
> and I cannot find any examples anywhere, I've been googling forever.
>
> Ultimately, my goal is to create a custom server control, that
renders out
> images with javascript. An additional "action" parameter on each item
would
> determine the action that the javascript executes. And I want the
designer
> to be able to configure the control at design time through the Items
> property.
>
> Any assistance would be appreciated very much.
> Ryan



Relevant Pages

  • Re: unittest: Calling tests in liner number order
    ... signal that it's good practice to allow dependencies between tests. ... there's a logical order to run them in. ... string until we know how to send an int. ... is not in how we send ints, because that test ran already and it passed. ...
    (comp.lang.python)
  • Re: Hungarian notation in C++ (is it used or not today, and if so, how?)
    ... So what method do people use to avoid type mismatches between ints, ... > denotes a string. ... > pointer to which type? ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Douglas J. Steeles CountInstances() function...
    ... ByVal ToFind As String) As Long ... If you don't watch out by picking up the search after the replacement, ... Dim intS As Integer ... Dim strTemp As String ...
    (comp.databases.ms-access)
  • Re: Property is loosing value
    ... This property is only set at design time. ... > the property would need to utilize ViewState ... > Property As String ... >> that when I add the component the following code is added to the webform: ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: TADOTable problem
    ... ADODatasets rather than tables as they are far more powerful ... I set the properties at design time and change the active property to true ... Name (String) ... Now even more strange. ...
    (borland.public.delphi.database.ado)