G Guest Oct 4, 2004 #1 Is there something like vb's msgbox in c# which will work also in console apps, like msgbox does ?
N Nicholas Paldino [.NET/C# MVP] Oct 4, 2004 #2 tt, You can call the static Show method on the MessageBox class in the System.Windows.Forms namespace. This will give you what you want. Hope this helps.
tt, You can call the static Show method on the MessageBox class in the System.Windows.Forms namespace. This will give you what you want. Hope this helps.
T Tom Porterfield Oct 4, 2004 #3 tt said: Is there something like vb's msgbox in c# which will work also in console apps, like msgbox does ? Click to expand... Add a reference to your app for System.Windows.Forms.dll. You can then call System.Windows.Forms.MessageBox.Show();
tt said: Is there something like vb's msgbox in c# which will work also in console apps, like msgbox does ? Click to expand... Add a reference to your app for System.Windows.Forms.dll. You can then call System.Windows.Forms.MessageBox.Show();