Show from background thread

3 posts, 0 answers
  1. Mark
    Mark avatar
    5 posts
    Member since:
    Jul 2012

    Posted 20 Jun 2011 Link to this post

    I have a thread that connects to a service. All is well there. I am able to show MessageBox and forms from it.

    The problem occurs when I try to plug in the desktopalert to show a message instead of using a form or MessageBox.  I get a black box down next to my task manager and if I click it I get an non response message fom windows.

    How can I show an alert from a thread which isn't the main thread? I do not want to use backgroundworker and my component doesn't have Invoke() available.

    Thank you.
  2. Boryana
    Boryana avatar
    330 posts

    Posted 23 Jun 2011 Link to this post

    Hello Chris,

    Thank you for contacting us.

    Our controls, including RadDesktopAlert, must be shown in the primary UI thread. You will be able to implement your scenario with standard MS controls, such as Forms and MessageBoxes, since they do not share static instances, such as themes.

    I hope you find this information useful. Let me know if you have further questions.

    Kind regards,
    the Telerik team

    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.

  3. DevCraft R3 2016 release webinar banner
  4. Will
    Will avatar
    11 posts
    Member since:
    Apr 2013

    Posted 15 May 2013 Link to this post

    Does this thread answer your question?
Back to Top