Search Result

Collapse
2 results in 0.0024 seconds.
Keywords
Members
Tags
invoke
  •  

  • MrFlabulous
    started a topic Refreshing a parent form

    Refreshing a parent form

    Hi,

    I'm a new programmer, and have a small problem. I've been trying to get a form populated with lots of buttons and tabs to be refreshed when its child form is closed. The routine I have is this:

    Code:
    NewForm_View show_it = new NewForm_View();
    show_it.ShowDialog();
    Form.ActiveForm.Refresh();
    If I understand correctly, the parent form code should pause until NewForm_View is Closed (or should...
    See more | Go to post
    Last edited by MrFlabulous; Feb 13 '12, 09:59 AM. Reason: Clarity

  • msjonathan
    started a topic Weird Invoke problem

    Weird Invoke problem

    Hej hej,

    I had something very weird when I had to close our application. It came in our method with this code.
    (the invoke code was hit, but did not close our application).
    Code:
    if (InvokeRequired)
                this.Invoke((MethodInvoker)delegate { Application.Exit(); });
             else
                Application.Exit();
    When I changed the code to:
    Code:
    MethodInvoker
    ...
    See more | Go to post
Working...