Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
signbit16-Aug-05 6:44
signbit16-Aug-05 6:44 
GeneralWindows Service Pin
horacyjr11-Aug-05 2:35
horacyjr11-Aug-05 2:35 
GeneralRe: Windows Service Pin
Alomgir Miah11-Aug-05 5:47
Alomgir Miah11-Aug-05 5:47 
GeneralTAB Key problem in COM Client Vs C# Component Pin
Sivakumar R11-Aug-05 2:18
Sivakumar R11-Aug-05 2:18 
GeneralRe: TAB Key problem in COM Client Vs C# Component Pin
rudy.net11-Aug-05 18:31
rudy.net11-Aug-05 18:31 
GeneralRe: TAB Key problem in COM Client Vs C# Component Pin
Sivakumar R11-Aug-05 22:15
Sivakumar R11-Aug-05 22:15 
GeneralRe: TAB Key problem in COM Client Vs C# Component Pin
rudy.net12-Aug-05 9:09
rudy.net12-Aug-05 9:09 
GeneralCtrl+C exception Pin
zaboboa11-Aug-05 2:09
zaboboa11-Aug-05 2:09 
Hello,

I get an exception when press Ctrl+C in my DataGrid, however, if I right click the grid, and pick Copy from a menu, everything works fine. Any ideas? Here is the exception:

The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.

************** Exception Text **************
System.Threading.ThreadStateException: The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy)
at System.Windows.Forms.Clipboard.SetDataObject(Object data)
at System.Windows.Forms.DataGrid.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMsoComponent.FPreTranslateMessage(MSG& msg)



GeneralRe: Ctrl+C exception Pin
MicrosoftBob11-Aug-05 3:24
MicrosoftBob11-Aug-05 3:24 
GeneralRe: Ctrl+C exception Pin
zaboboa11-Aug-05 5:23
zaboboa11-Aug-05 5:23 
GeneralRe: Ctrl+C exception Pin
MicrosoftBob11-Aug-05 5:24
MicrosoftBob11-Aug-05 5:24 
GeneralRe: Ctrl+C exception Pin
zaboboa11-Aug-05 5:51
zaboboa11-Aug-05 5:51 
GeneralRe: Ctrl+C exception Pin
MicrosoftBob11-Aug-05 6:10
MicrosoftBob11-Aug-05 6:10 
QuestionHow to: Activate or open an document in MDI application through a treeview? Pin
bouli11-Aug-05 1:56
bouli11-Aug-05 1:56 
AnswerRe: How to: Activate or open an document in MDI application through a treeview? Pin
Mohamad Al Husseiny11-Aug-05 4:09
Mohamad Al Husseiny11-Aug-05 4:09 
GeneralRe: How to: Activate or open an document in MDI application through a treeview? Pin
bouli11-Aug-05 4:39
bouli11-Aug-05 4:39 
GeneralRe: How to: Activate or open an document in MDI application through a treeview? Pin
MicrosoftBob11-Aug-05 5:00
MicrosoftBob11-Aug-05 5:00 
GeneralRe: How to: Activate or open an document in MDI application through a treeview? Pin
Mohamad Al Husseiny11-Aug-05 13:06
Mohamad Al Husseiny11-Aug-05 13:06 
GeneralRe: How to: Activate or open an document in MDI application through a treeview? Pin
bouli12-Aug-05 0:20
bouli12-Aug-05 0:20 
GeneralRemoting Pin
vuthaianh11-Aug-05 1:43
vuthaianh11-Aug-05 1:43 
GeneralRe: Remoting Pin
S. Senthil Kumar11-Aug-05 8:00
S. Senthil Kumar11-Aug-05 8:00 
GeneralXML soap Problem Pin
felopater11-Aug-05 0:53
felopater11-Aug-05 0:53 
GeneralRe: XML soap Problem Pin
Guffa11-Aug-05 1:31
Guffa11-Aug-05 1:31 
GeneralRe: XML soap Problem Pin
felopater11-Aug-05 1:53
felopater11-Aug-05 1:53 
GeneralRe: XML soap Problem Pin
Guffa11-Aug-05 2:22
Guffa11-Aug-05 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.