Top "Invoke" questions

Executes the specified delegate on the thread that owns the control's underlying window handle.

Parameter count mismatch with Invoke?

The code block below results in the error: TargetParameterCountException was unhandled by user code. Parameter count mismatch. public void AddListViewItem(…

c# winforms parameters delegates invoke
Avoid calling Invoke when the control is disposed

I have the following code in my worker thread (ImageListView below is derived from Control): if (mImageListView != null && …

c# controls dispose invoke
C# compile error: "Invoke or BeginInvoke cannot be called on a control until the window handle has been created."

I just posted a question about how to get a delegate to update a textbox on another form. Just when …

c# delegates invoke handle runtime-error
PowerShell Pass Named parameters to ArgumentList

I have a PowerShell script that accepts 3 named parameters. Please let me know how to pass the same from command …

powershell parameters command invoke named
C# DllImport with C++ boolean function not returning correctly

I have the following function in a C++ DLL extern "C" __declspec(dllexport) bool Exist(const char* name) { //if (g_…

c# c++ dll import invoke
MethodInfo.Invoke performance issue

I am reading and writing data to and from a file. The data in the file can be floats, doubles, …

c# .net invoke
C# - Emgu cv How to load an image from a folder using CvInvoke.cvLoadImage("ClassPic1.jpg") as intptr and access it

How to load an image from a specific folder using Emgu cv CvInvoke.cvLoadImage(...)?I am tryng to do it …

invoke emgucv intptr loadimage
How do I dynamically invoke methods in Groovy?

At runtime I'm grabbing a list of method names on a class, and I want to invoke these methods. I …

groovy invoke dynamicmethod
Invoke method by MethodInfo

I want to invoke methods with a certain attribute. So I'm cycling through all the assemblies and all methods to …

c# reflection invoke methodinfo
Communication between BroadcastReceiver and Activity - android

I have a broadcast receiver in my app which is fired every time the user gets an incoming call. Now, …

android android-activity methods broadcastreceiver invoke