Help with MessageBox.Show in SDk 1.1

  • Thread starter mafat mafat via .NET 247
  • Start date
M

mafat mafat via .NET 247

I have installed the latest SDK 1.1 from Microsoft on my PCrunning Win2K OS. When I run the following program, it displaysthe MessageBox BUT DOES NOT show any text or anything on thebutton. I think it is supposed to dislay the text "Hello World!"and OK on the button.

Any help is greatly appreciated.

Here is the code:
/*
HelloWorld.cs - First c# program
Compilation: csc HelloWorld.cs
*/

using System;
using System.Windows.Forms;

public class HelloWorld
{
public static void Main()
{
//Print Hello World
MessageBox.Show("Hello World !");
}
}
 
N

Norman Yuan

It is caused by anti-virus running on your computer, usually. Try disable it
to verify. If it is, you need update the anti-virus software or contact the
its support to solve it.

I have installed the latest SDK 1.1 from Microsoft on my PC running Win2K
OS. When I run the following program, it displays the MessageBox BUT DOES
NOT show any text or anything on the button. I think it is supposed to
dislay the text "Hello World!" and OK on the button.

Any help is greatly appreciated.

Here is the code:
/*
HelloWorld.cs - First c# program
Compilation: csc HelloWorld.cs
*/

using System;
using System.Windows.Forms;

public class HelloWorld
{
public static void Main()
{
//Print Hello World
MessageBox.Show("Hello World !");
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top