Ctrl-C with error
-
When I click Ctrl-C in my control inherited from TextBox I get following exception (and "c" letter is written to the TextBox): 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 in ProcessDialogKey() method. Stack trace is: System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy) System.Windows.Forms.Clipboard.SetDataObject(Object data) System.Windows.Forms.DataGrid.ProcessDialogKey(Keys keyData) Any other OLE calls (Ctrl-V etc.) doesn't cause such errors. May be someone know what happens and how to avoid it? Thx in advance Hi, AW
-
When I click Ctrl-C in my control inherited from TextBox I get following exception (and "c" letter is written to the TextBox): 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 in ProcessDialogKey() method. Stack trace is: System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy) System.Windows.Forms.Clipboard.SetDataObject(Object data) System.Windows.Forms.DataGrid.ProcessDialogKey(Keys keyData) Any other OLE calls (Ctrl-V etc.) doesn't cause such errors. May be someone know what happens and how to avoid it? Thx in advance Hi, AW
-
When I click Ctrl-C in my control inherited from TextBox I get following exception (and "c" letter is written to the TextBox): 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 in ProcessDialogKey() method. Stack trace is: System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy) System.Windows.Forms.Clipboard.SetDataObject(Object data) System.Windows.Forms.DataGrid.ProcessDialogKey(Keys keyData) Any other OLE calls (Ctrl-V etc.) doesn't cause such errors. May be someone know what happens and how to avoid it? Thx in advance Hi, AW
-
Thx, it misteriously disappeared Hi, AW