Re: DataGridView and ComboBoxColumn
- From: Brian Pelton <no@xxxxxxxxx>
- Date: Wed, 31 Jan 2007 11:14:42 -0800
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]
.
- References:
- RE: DataGridView and ComboBoxColumn
- From: Linda Liu [MSFT]
- RE: DataGridView and ComboBoxColumn
- From: Chris
- RE: DataGridView and ComboBoxColumn
- Prev by Date: Re: Instance with Inheritance
- Next by Date: Re: C# inheritance broken?
- Previous by thread: RE: DataGridView and ComboBoxColumn
- Next by thread: Re: DataGridView and ComboBoxColumn
- Index(es):
Relevant Pages
|
|