Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AbusinessObject and AbusinessRules Question
Message
De
27/07/2004 11:25:55
 
 
À
27/07/2004 11:19:46
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00927966
Message ID:
00928323
Vues:
30
Jason,

>>By default, VS.NET associates .cs files with the "CSharp Form Editor" -- which only works for objects that present designable, UI-type interfaces. mmBusinessObjects, among other classes, do not.

That's not entirely true. We have plenty of plain old .cs files that are not designable, for which a double-click simply brings up the code. I'm not sure off the top of my head what exactly it is that makes the IDE know the difference. Could have something to do with an .resx file, I'm not 100% sure, just speculating.

Shawn, if you look at the icon of the class in the Solution explorer, you can see the difference between plain old .cs files and ones that look to the IDE as if they should be opened in the designer.

~~Bonnie



>Shawn,
>By default, VS.NET associates .cs files with the "CSharp Form Editor" -- which only works for objects that present designable, UI-type interfaces. mmBusinessObjects, among other classes, do not.
>
>You can change the association by right-clicking the file and selecting "Open With..." In the dialog, select "CSharp Editor" and use the "Set Default" button to ensure that all .cs files will open using a code editor.
>
>Keep in mind, though, that all your forms will now open directly to a code window when double-clicked, and you'll have to use the IDE to see your form in design mode. It's the proverbial "six of one, half dozen of the other"
>
>Hope that helps,
>---J
>
>>Okay, i got that, but why does VS think it is a Component versus just a "cs" file?
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform