I am developing an application for Windows CE using Visual Studio 2008.
Code:
private void cmdLogOn_Click(object sender, EventArgs e)
{
if (loginStatus == false)
{
DialogResult dialogresult = MessageBox.Show("Are you sure?", "text", MessageBoxButtons.YesNo);
if (dialogresult == DialogResult.Yes)
{
//Do Stuff;
}
}
else
{
//Do stuff
}
}
I am getting the error : "No overload for method 'Show' takes '3' arguments". Any idea why?
EDIT: Here is a step by step using a new application to demonstrate the issue:
- As you can see, I am using VS2008
2.Visual C# > Smart Device Project
- Target platform: Windows CE - .NET Compact Framework Version 3.5
- I create a button =
button1
& a label =label1
- Here is the code I entered, but the error persists