invokerequired Questions
3
Solved
In my application I have class that is responsible for all database actions. It is called from main class and uses delegates to call methods after action is complete.
Because it is asynchronous I m...
Bushido asked 14/9, 2012 at 6:30
9
Solved
I have become painfully aware of just how often one needs to write the following code pattern in event-driven GUI code, where
private void DoGUISwitch() {
// cruisin for a bruisin' through except...
Transcalent asked 2/3, 2010 at 23:29
8
Solved
I know that when manipulating UI controls from any non-UI thread, you must marshal your calls to the UI thread to avoid issues. The general consensus is that you should use test InvokeRequire...
Histoid asked 6/10, 2010 at 15:26
2
Solved
I have been looking all over for an answer to this question, but can't seem to find a satisfactory answer. Maybe someone here can enlighten me.
I have a descendent of BindingList<T> that sto...
Vilayet asked 28/3, 2011 at 22:20
2
Solved
I am a novice programmer so I could be completely mistaken here, but this issue bugs me more then it should.
This is actually a follow-up from this question.
The accepted answer was, that you hav...
Primo asked 2/7, 2013 at 9:14
4
I used this function in a Windows forms application:
delegate void ParametrizedMethodInvoker5(int arg);
private void log_left_accs(int arg)
{
if (InvokeRequired)
{
Invoke(new Parametriz...
Fiver asked 19/3, 2013 at 16:17
1
Solved
I am confused with scenario which I have encountered with cross thread access. Here is what I am trying to do:
Main UI thread - menu item click I create a background worker and run it asynchronous...
Nikolas asked 8/5, 2012 at 11:26
6
Solved
I've seen the common setup for cross threading access to a GUI control, such as discussed here:
Shortest way to write a thread-safe access method to a windows forms control
All the web hits I foun...
Vitreous asked 14/4, 2009 at 11:56
5
I currently trying to write a component where some parts of it should run on the UI thread (explanation would be to long).
So the easiest way would be to pass a control to it, and use InvokeRequire...
Janise asked 19/1, 2009 at 10:57
5
Solved
Well, I'm writing a file of extensions/method useful to strings,label,linklabels,class etc.
but, I have a problem. I have an showMessage() method that change the Text of label, works fine. But I d...
Carlos asked 16/12, 2011 at 16:39
3
Solved
I'm writing a form app in c# and I need to be able to change the contents of a Rich Text Box from any thread, I tried using a delegate and InvokeRequired, but the delegate I made still gives me a c...
Hack asked 28/4, 2011 at 8:44
3
Solved
how is it possible? I have windows Form control, derived from System.Windows.Forms.Form with WebBrowser control contained in this form. Webbrowser object instance is created in constructor of form ...
Nicolas asked 25/10, 2010 at 11:7
3
Solved
I have had recently one of those really bad interviews, where they play good cop/bad cop with you. Whatever I replied wasn't good enough for one of them and my confidence was shrinking minute by mi...
Myxomycete asked 24/10, 2010 at 17:33
1
© 2022 - 2024 — McMap. All rights reserved.