index > ClickOnce and Setup & Deployment Projects > How to use MsgBox in c# for a class library

How to use MsgBox in c# for a class library

Is this possible ?

In this exemple: http://msdn2.microsoft.com/en-us/library/9cdb5eda(VS.80).aspx

they are using MsgBox which is in Microsoft.VisualBasic namespace. However, I can't use it in c#. Because I don't have a windows program, I can't use the MessageBox as well because I don't have access to System.Windows namespaces.

Is it possible to have a messagebox in C# ? If so, how !

thanks.

abuck
Hi,
the message box is located at: System.Windows.Forms, to use it just do:
System.Windows.Forms.MessageBox.Show("Test");

don't forget to include the System.Windows.Forms reference in your project.
n0n4m3
reply 2

You can use google to search for other answers

 

More Articles

• ClickOnce application StartupPath
• Setup Project: How do I make a dialog conditional?
• The referenced assembly is not installed on your system. (Excepti...
• Install web site on .net version 2.0
• Security Error while installing ClickOnce application
• Deploying the framework with the application
• Open .exe from network
• Best place to store user data files, such as .xml files?
• Registry Condition
• Do Custom prereq's have to be located in ...
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Install and uninstall framework,
• C# runtime question? (general question)
• should access database under application
• ? How to Use Delay Signing With Click On
• how do you make update absolutely mandat
• how to indicate install location, progra
• Great article, but a question to David G
• Adding new project to publish
• Getting the current website address Inte
• No Touch Deployment - Not Working On Som
• Deployment Projects include .net framework
• ConnectString in Debug and Release.
• Q305624 hosting controls from the filesy
• Windows Media Encoder app AND Windows E
• Side by side execution

Hot Articles

• Publishing Problem in RC1 - 8.05727.26 (
• config for each user of application?
• Compile warnings from adding merge modules
• web deployement of a winform containing
• Multiple update point
• Application.exe.config
• Forms control not displaying in IE on XP
• unnistall setup projects
• c# windows forms Network Based Deployment
• ClickOnce with Apache and Linux
• Windows controls in IE with linked sub-c
• How to install Office Web Component prer
• Tooltip
• ClickOnce publish failes when project ha
• How to get Authenticode to work with Cli

Recommend Articles

• how to find that my key what is my key n
• ClickOnce and MSBuild
• How to publish a project to CD'S using C
• Tracking down URLDownloadToCacheFile fai
• Size of framework prerequisite seems ver
• Uninstall window has no text
• Change the language in the install.msi-f
• custom action for installing Crystal Rep
• Deploying detected assembly in multiple
• What do I need to do to deploy controls
• Error when using .Net Application Update
• VS.net 2005 Installer: Not enough storag
• Change configuration setting after it is
• Making a change to a ClickOnce app?
• "Unable to activate the application