Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What namespace is MessageBox a part of?
Message
De
14/05/2003 08:39:41
 
 
À
13/05/2003 19:30:27
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00787956
Message ID:
00788126
Vues:
41
Thanx,

You are correct. I had a seperate project in my solution dedicated to business classes. There was *no* need to reference System.Windows.Forms in the project until I got the idea to assist debugging with a MessageBox.Show construct.

Later and thank you for the help
Neil

>Neil,
>
>You probably need to add System.Windows.Forms to your project References.
>
>~~Bonnie
>
>
>>You are 100% correct. UI does not belong in the bizoj but it is nice to have during debugging. I have a question about System.Windows.Forms. When I place:
>>
>>
>>using System.Windows.Forms;
>>
>>in the .cs file that contains my bizobj class, the compiler complains that Windows is not part of the System namespace. What am I doing wrong?
>>
>>Neil
>>
>>>Neil,
>>>
>>>I don't use MM, and I don't know if MM's Biz Objects are intended for use as server-side, client-side or both. What we've done in our application is to have two types of Biz Objects, one for strictly server-side stuff and one for client-side stuff ... and even so, we don't put any UI stuff in either Biz Object.
>>>
>>>Anyway, the namespace you need for MessageBox is System.Windows.Forms.
>>>
>>>~~Bonnie
>>>
>>>>Hi,
>>>>
>>>>When debugging a business object, which I subclassed from ABusinessObject, I would like to have access to MessageBox.Show(). What namespace should I add to my business object to accomplish this?
>>>>
>>>>Regards,
>>>>Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform