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
0 answers

C# Webcontrol Click Javascript Button problems

I read many posts but my problem is not really solved. I hope you can help me. Problem: In my C# Application I use a webcontrol and navigate through a website. This works good except for buttons. I want to click them, but it does not work…
0
votes
2 answers

Invoke from background thread in layered application

Windows forms application, doing heavy processing in separate thread. Somewhere down the processing, I need to take some feedback from user (Like asking some questions about visual output to another device). If I were to do this in UI layer, I would…
Shanadas
  • 515
  • 1
  • 6
  • 22
0
votes
1 answer

How to update a rich text box from a background worker using a delegate

Ok I'm pretty new to using threads but so far I've managed to get the following: Private Delegate Sub dlgUpdateText(text as string) Private Sub UpdateStatus(text as string) If rtxStatus.InvokeRequired then Dim dlg as new…
LostRob
  • 433
  • 1
  • 4
  • 12
0
votes
1 answer

I am trying to use swift to invoke another application passing a file with no joy

I am trying to invoke an external application such as Numbers (.numbers) or Safari (.htm). I have tested this with an internet URL and this works (with slight changes to the code here). I tried to use a htm to invoke Safari local access but no…
0
votes
1 answer

Invoke Control with BackGroundWorker

Have strange problem and can't figure out with it. Trying to transform an RichTextBox to a log 'console' in my application. Of course I use threads in my application, and of course I know about Invoke. Let's take a look at my code. MainForm starts a…
Johnny
  • 555
  • 1
  • 5
  • 22
0
votes
3 answers

Invoke method from another form

I'm trying to write a program that can display sql databases. I have 2 forms and i want to invoke the displaytable method(which opens a new tabpage on the main form(Form1) for every selected table in the sql database) on Form1.The 2 forms are open…
Bálint Bozsóki
  • 115
  • 1
  • 3
  • 10
0
votes
1 answer

Java - exception with invoke

I added a new parameter into my game (libGDX) and I got a strange error: Exception in thread "main" java.lang.NullPointerException at com.game.game.GameLaunching.(GameLaunching.java:21) at com.game.game.Main.main(Main.java:15) at…
QueMonster
  • 39
  • 3
0
votes
1 answer

Under what conditions is it necessary to invoke a method?

I thought I understood that in order for a separate thread to make changes to the GUI in a winforms application, the method needed to be invoked. However, I've written a method to asynchronously populate a combobox, and it shows me that there's…
charlieparker
  • 186
  • 1
  • 8
0
votes
2 answers

Cannot invoke setText(String) on the array type

Hi i am having an issue with trying to getting an array from my server. I am gonna try to be as specific as i can. i hope this post wont be too long. public static Appointment[] getAppointments(DateTime date, String titel, String note, Date…
Mads Hjorth
  • 439
  • 1
  • 9
  • 23
0
votes
1 answer

NSInvocation invoke giving bad access in iOS 8

I'm trying to run this code in iOS 8 but I'm getting a bad access error in the method called, this runs ok in iOS 7. Does anyone has a clue about this? -(double) calcularColumna:(int ) anio :(int) mes :(NSString * ) columna { NSInvocation *…
Rafael Jimeno
  • 626
  • 2
  • 8
  • 20
0
votes
1 answer

How to invoke GUI thread in VB.NET from SignalR Hub

I have a problem concerning following piece of code (C#): stockTickerHub.On("notify", () => Context.Post(delegate { mainForm.textBox1.Text += "Notified!\n"; }, null) ); Above code runs in an async Sub in a VB.NET Module. I am not allowed to…
Flash1232
  • 384
  • 1
  • 3
  • 18
0
votes
1 answer

Detect SD card using WMI Query

I have a query that return USB devices attached in: SelectQuery sq = new SelectQuery("select DeviceID, Model from Win32_DiskDrive where InterfaceType='USB'"); ManagementObjectCollection MOC = new ManagementObjectSearcher(sq).Get(); But it…
Fher Devs
  • 45
  • 7
0
votes
3 answers

How to use Delegate in C# for Dictionary>

The code: [1] private delegate void ThreadStatusCallback(ReceiveMessageAction action, Dictionary> message); [2] Dictionary> messagesForNotification = new Dictionary
Emanuel
  • 6,622
  • 20
  • 58
  • 78
0
votes
2 answers

Invoke an application installed on your computer from a web page

I am currently developing a web application. The application needs to open other applications installed on the computer. The end user will use Windows and Internet Explorer, the application does not have to support other web browsers. Some people…
choqueiro
  • 1
  • 1
0
votes
2 answers

maximize window after timer finish

I would like to know how to maximize main form window after the timer was finished. Assume that the window is minimize when the timer finished. this is how I tried to implementing it: private void timer1_Tick(object sender, ElapsedEventArgs e) …
user2235615
  • 1,513
  • 3
  • 17
  • 37