On Wed, 2008-11-26 at 13:53 +0000, Paul wrote:
> Hi,
> 
> > It has a Form-derived class so it doesn't need a Main method, just to
> > be compiled as a winexe target.
> 
> D'oh!
> 
> hmmm, gmcs dataview*cs -r:System.Windows.Forms -r:System.Drawing
> -r:System.Data -target:winexe is still telling me that it won't compile
> as there is no Main function...
> 
> Using mono-2.2 preview 1

WinExe targets need main functions, too. How about this?


// Main.cs
using System.Windows.Forms;

namespace DataGridViewProblem
{
        static void Main()
        {
            Application.Run(new frmDataGridProblem());
        }
}

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to