[Mono-winforms-list] DataGridView DataBoundItem return NULL

Stefanos A. stapostol at gmail.com
Wed Nov 26 09:01:03 EST 2008


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());
        }
}



More information about the Mono-winforms-list mailing list