Questions tagged [invoke]

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

The Invoke method searches up the control's parent chain until it finds a control or form that has a window handle if the current control's underlying window handle does not exist yet. If no appropriate handle can be found, the Invoke method will throw an exception.

1794 questions
0
votes
1 answer

How can I take a parameter or call a function which is declared in other braces?

I'm beginner in C# and having great difficulty to figure our some issues. So I hope my terminology does not matter. Here is my question. Let's say I have the following code: namespace WindowsFormsApplication8 { public partial class Form1 : Form …
user16307
  • 131
  • 1
  • 9
0
votes
1 answer

Action.Invoke on an instanced class?

Basically what I'm doing is I'm creating a temporary buffer that writes data to a byte[] and then returns the size of the buffer; I'm then using this to attempt to de-segmentate my code over a network. (Trying to get my C# Client to work properly…
Hobbyist
  • 15,888
  • 9
  • 46
  • 98
0
votes
2 answers

Xcode6 Cannot invoke 'subscript' with an argument list of type

Cannot understand why xcode tries to invoke a subscript, I do not want it from xcode. I have a simple structure: struct Point3D { var x: Double = 0.0 var y: Double = 0.0 var z: Double = 0.0 init(x:Double, y:Double, z:Double) {self.x…
Olexiy Pyvovarov
  • 870
  • 2
  • 17
  • 32
0
votes
2 answers

How to iterate over inputs of certain class with Prototype

I want to iterate over an array of inputs that belong to certain class (eg."required"). How can I traverse it and get their values ? Something like $$('input required').invoke(function(e){ alert(?input value?) }); thanks
xain
  • 13,159
  • 17
  • 75
  • 119
0
votes
0 answers

Java - method.Invoke only works on one class

I have run into a problem as soon as I tried to make a Java application which I want to make modular. I want to have an implemented system for events, however, the events which I want to call only call from the file which the whole system starts on.…
Daniël V
  • 15
  • 4
0
votes
1 answer

Invoke method of the control in context of its thread from separate static class

I have a form and some control on it : public class Tester : Form { public Label Demo; public Label GetDemo() { return Demo.Text; } } Also I have some static class : public static bool Delay(Func condition) { bool…
Anonymous
  • 1,823
  • 2
  • 35
  • 74
0
votes
1 answer

Connect delegate property with several arguments and method with single argument of type object[]

In some object I've got a delegate property with several call-arguments gotten through reflection. For example: public Action myDel{get;set;} So i've got only reflection information about it PropertyInfo del =…
tmt
  • 686
  • 2
  • 10
  • 22
0
votes
0 answers

Python - Can I get all Code Paths that use a name in a module (more specifically call a function)

Assuming that all usages of name my_function from module asfd.zxcv.qwer are static, and all usages of all the code invoking that method is static (and the code invoking THAT code, and so on), is there a tool that gets all the code paths leading to…
vlad-ardelean
  • 7,480
  • 15
  • 80
  • 124
0
votes
1 answer

Powershell execute commandline locally

Powershell script executes commandline on local machine $j = "remote_machine" $comp = "\\"+$j $command = 'D:\PSTools\PsExec.exe $comp -u Administrator -p plaintextpassword -accepteula powershell.exe c:\share\script.ps1' Invoke-Expression "&…
Glowie
  • 2,271
  • 21
  • 60
  • 104
0
votes
2 answers

Cannot call js function from html button

Im writing a program that creates a cookie with a string of foods in it. Upon pressing submit, whichever foods have been checkbox'd should be collected into a string and then recorded into the document's cookie. Then an alert() displays my cookie…
0
votes
1 answer

Threading check on Invoke

So, I originally had this section of code where the parent caller in the caller tree is my main window's load function. Now this gave me a beginInvoke (Your windows control is not yet initialized and it tries to reference it) error whenever I…
Kat
  • 2,460
  • 2
  • 36
  • 70
0
votes
2 answers

How to do a reflection in a while loop without initializing it

Method method; try { method = m.getClass().getMethod(h); } catch (SecurityException e) { } catch (NoSuchMethodException e) { } try { //line below wants me to…
0
votes
1 answer

How to invoke a method when it has n enum type as parameter

I would like to invoke a method which has an enum type as parameter with reflection. How to do this. Code: @When("^I click on the (\\d+)st link inside the \"(.*?)\" filter$") public void i_click_on_the_st_link_inside_the_filter(int index,…
user1511408
  • 445
  • 1
  • 4
  • 9
0
votes
1 answer

PerformClick() to four button simultaneously, parallel in Threads

I have got a program which is controlling a video capturing card. And this card has got several inputs and my task is to write a method which starts capturing from all inputs. Unfortunately in SDK I can only call the method which handles a click…
KonradPrg
  • 29
  • 7
0
votes
1 answer

How to Invoke android app from a PC browser using an android server?

I know how to invoke my app "App.A" on my android phone from html file using my android browser. The html is on my web server "App B" that is on my android as well, in html I added: Click me? And in my app "App A" I added…
Majid ff
  • 249
  • 7
  • 22