using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
]
Error 1 The best overloaded method match for 'System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext)' has some invalid arguments C:\Users\Radio Shack\AppData\Local\Temporary Projects\WindowsFormsApplication1\Program.cs 18 13 WindowsFormsApplication1
The 2 errors are: Error 2 Argument 1: cannot convert from
'WindowsFormsApplication1.Form1' to 'System.Windows.Forms.ApplicationContext' C:\Users\Radio Shack\AppData\Local\Temporary Projects\WindowsFormsApplication1\Program.cs 18 29 WindowsFormsApplication1
This post has been edited by tlhIn`toq: 08 September 2012 - 01:09 PM
Reason for edit:: [code] your code here [/code] tags added

New Topic/Question
Reply



MultiQuote




|