Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiated Object Inheritance
Message
De
11/11/2008 15:20:38
 
 
À
10/11/2008 18:58:35
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01359137
Message ID:
01361162
Vues:
25
Agreed. Usually we would load combo items from tables programmatically. But in this application there are other constraints that are in play.

Bill

>Hey Bill,
>
>I tend to do stuff like this programmatically anyway, so I like your workaround. {g}
>
>
>~~Bonnie
>
>
>
>
>
>>Hi Bonnie,
>>
>>Thanks for the reply. Hope your vacation was pleasant. I was never able to determine the actual cause and all of my internet searches turned up nothing. So I opted for a workaround in which the dropdown itmes are added programmatically in the Load of the User Control. This resolved the immediate problem. However, I would still like to know why the changes in the parent class(es) were not reflected in the previously placed controls on the form, since, I am sure, it will come back to bite in some other form later on. :-)
>>
>>Bill
>>
>>>I've been away on vacation for the past week and I see that you've gotten no responses to your question ... have you resolved the issue? Have you looked at the designer-generated code to see how the items actually got added? (off the top of my head, I don't know and I haven't added items to combos in this manner in the past).
>>>
>>>~~Bonnie
>>>
>>>
>>>
>>>>BTW, this is a WinForm issue.
>>>>
>>>>I have a sub-class of a user control that has a combobox in it. In the sub-class I have a set of items entered in the list via the collection in the IDE. I then drop the sub-classed control on a form and run it. No problem. I then go back to the sub-class in the IDE and add items to the combo dropdown collection and change some of the item’s names, values etc. Rebuild the entire solution with all projects. Run the form and only the original set of combo items shows up in the dropdown. The instantiated combo objects are not refreshed with the additions/changes to the dropdown list. The already placed object of the sub-class does not reflact the changes made in the sub-class.
>>>>
>>>>How can this be corrrected? I would expect it to have something to do with the *.resources and/or *.cache files generated in the folders. But I have removed them all to external folders and rebuilt the solution to no avail. Where in the world could the info be kept that gets built into the instantiated objects? Any info on this would be appreciated.
>>>>
>>>>Thanks,
>>>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform