Re: DataGridView and ComboBoxColumn



Chris wrote:

"current thread must be set to single thread apartment (STA) mode before OLE cals can be made. Ensure your main function has STAThreadAttributemarked on it".

What?? ;o)

In your Main() method that starts your application, add [STAThred]


[code]

using System;

namespace YourProgramNamespace
{
static class Program
{
[STAThread]
static void Main()
{
}
}
}

[/code]

.



Relevant Pages

  • Re: Form resizing not by context menu
    ... [STAThread] ... static void Main ... using (Form parent = new Form()) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Divider in ListView
    ... ListView supports groups on XP and above, ... have misunderstood. ... [STAThread] ...
    (microsoft.public.dotnet.languages.csharp)
  • forms error
    ... namespace System.Windows.Forms ... /// The main entry point for the application. ... [STAThread] ...
    (microsoft.public.dotnet.languages.csharp)