Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form clone
Message
De
09/08/2005 08:45:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/08/2005 23:26:46
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Divers
Thread ID:
01039313
Message ID:
01039511
Vues:
20
>Well, I'm sure it's because you need to change the things that I mentioned (name of the class,etc.) You can't have two classes with the same name in the same namespace, that only makes sense.

I had expected a compiler error, and I was prepared to change class name et. al. - but I didn't get to the point where I could do it, at least, not from within Visual Studio. The entire form appeared only once in the project, even after adding the duplicate.
>
>~~Bonnie
>
>
>
>>>How did you add the 2nd form?
>>>
>>>~~Bonnie
>>
>>I tried two different things.
>>
>>1) Save as, then add the duplicate to the project. The project only shows one of the forms.
>>
>>2) Make a new form, copy the entire code from the old form, and paste into the new one. The compiler gives an error message; as far as I remember, something like "the forms share the same resources".
>>
>>I suspect that in the first case, there is also a conflict with resources (whatever that means!)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform