Click here to Skip to main content
15,885,244 members
Home / Discussions / C#
   

C#

 
QuestionCTRL+C and CTRL+V in grid control Pin
eli1502197929-Jul-08 23:51
eli1502197929-Jul-08 23:51 
AnswerRe: CTRL+C and CTRL+V in grid control Pin
paas30-Jul-08 4:25
paas30-Jul-08 4:25 
QuestionGet method name as string Pin
Nicholas Butler29-Jul-08 23:36
sitebuilderNicholas Butler29-Jul-08 23:36 
AnswerRe: Get method name as string Pin
leppie30-Jul-08 0:22
leppie30-Jul-08 0:22 
GeneralRe: Get method name as string Pin
Nicholas Butler30-Jul-08 0:36
sitebuilderNicholas Butler30-Jul-08 0:36 
AnswerRe: Get method name as string Pin
DaveyM6930-Jul-08 1:09
professionalDaveyM6930-Jul-08 1:09 
GeneralRe: Get method name as string Pin
leppie30-Jul-08 2:27
leppie30-Jul-08 2:27 
QuestionControl.Invoke() equivalent with Thread object Pin
ccufi29-Jul-08 23:36
ccufi29-Jul-08 23:36 
Hi there,

I am well aware of the usage of Control.Invoke() in a Form (System.Windows.Forms) to be able to access UI components in a thread-safe manner so that it is the thread that holds the window handle the one that executes it. I was wondering, if I don't have a reference to the Form but instead to the window thread (as a Thread object) is there a way to use that Thread object (or anything similar that can be extracted from the execution context) to do the same as Control.Invoke() ?

Background: I have a C# assembly (utils library) that calls into C++, but callbacks are returned in a separate thread, and I want the assembly to be application-independent but to return the callbacks (using events) in the same thread that the requests were made in.

Thanks in advance!

Carles
AnswerRe: Control.Invoke() equivalent with Thread object Pin
Frank Horn30-Jul-08 0:36
Frank Horn30-Jul-08 0:36 
AnswerRe: Control.Invoke() equivalent with Thread object Pin
Alan N30-Jul-08 4:55
Alan N30-Jul-08 4:55 
QuestionHow to run application from network folder Pin
AndrusM29-Jul-08 23:12
AndrusM29-Jul-08 23:12 
AnswerRe: How to run application from network folder Pin
Simon P Stevens29-Jul-08 23:47
Simon P Stevens29-Jul-08 23:47 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 0:25
AndrusM30-Jul-08 0:25 
GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 1:16
Simon P Stevens30-Jul-08 1:16 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 1:22
AndrusM30-Jul-08 1:22 
GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 1:34
Simon P Stevens30-Jul-08 1:34 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 7:25
AndrusM30-Jul-08 7:25 
GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 21:30
Simon P Stevens30-Jul-08 21:30 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 22:38
AndrusM30-Jul-08 22:38 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 1:35
AndrusM30-Jul-08 1:35 
GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 1:41
Simon P Stevens30-Jul-08 1:41 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 7:27
AndrusM30-Jul-08 7:27 
GeneralRe: How to run application from network folder Pin
mav.northwind30-Jul-08 19:03
mav.northwind30-Jul-08 19:03 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 23:02
AndrusM30-Jul-08 23:02 
GeneralRe: How to run application from network folder Pin
mav.northwind31-Jul-08 8:36
mav.northwind31-Jul-08 8:36 

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.