Please forgive me for what could bee the noob question of the year...
Normally I use VB.NET, but fooling around with C# today, I couldn't even get to first base. I attempted the following code:
But the compiler complained about the MessageBox.Show call, complaining that:
Can anyone tell me what ridiculously simple thing I am missing here?
Thanks in advance!
Mike
Normally I use VB.NET, but fooling around with C# today, I couldn't even get to first base. I attempted the following code:
C#:
static void Run
{
MessageBox.Show("hello");
}
(See the screen shot below.)A get or set accessor expected
Can anyone tell me what ridiculously simple thing I am missing here?
Thanks in advance!
Mike