Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex control properties
Message
De
28/10/2009 20:50:31
 
 
À
28/10/2009 17:08:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01431897
Message ID:
01432143
Vues:
35
Glad you figured it out Denis, because I would never have gotten *that* one!

~~Bonnie



>Hi,
>I'v got it work
>I wrote ConvertTo for InstanceDescriptor and now all fine :)
>
>
>>How are you setting the properties? In the IDE via the Property Sheet? Or in your own code (not the designer.vb file)?
>>
>>~~Bonnie
>>
>>
>>>Hi,
>>>I wrote custom property for my control like
>>>
>>>Control
>>> _ myDatasource as MyCustomDataSoruceObject
>>> __Database as String
>>> __Tablename as string
>>> __Fieldname as string
>>>
>>>In Design time I work with control and set those properties . When I close form which contains my control - values goes to default values.
>>>
>>>So far.. I understand - I have not code in the Designer.VB.. I check for some default complex control properties like Size or Point
>>>Designer generate a code as Me.mycontrol.location = new System.Drawing.Point(112,36) - for example..
>>>So
>>>In my case it must be Me.mycontrol.mydatasource = New myCustomDataSourceObject("Databasevalue","TableValue","FIeldValue")
>>>
>>>The question is.
>>>How to generate this code in DesignTime - every time when user change values of my complex property?
>>>
>>>Thanks
>>>Denis
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform