Show from background thread

5 posts, 0 answers
  1. Mark
    Mark avatar
    5 posts
    Member since:
    Sep 2010

    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. Will
    Will avatar
    11 posts
    Member since:
    Apr 2013

    Posted 15 May 2013 Link to this post

    Does this thread answer your question?
  4. Reza
    Reza avatar
    1 posts
    Member since:
    Dec 2019

    Posted 07 Dec 2019 in reply to Boryana Link to this post


    i have a thread outside of UI(main) thread, and i want show radDesktopAlert on it, but radAlert not show

    new MethodInvoker(new Action(() =>

    can you help me about it?

  5. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3713 posts

    Posted 10 Dec 2019 Link to this post

    Hello, Reza, 

    I have prepared a sample project for your reference demonstrating how t show a RadDesktopAlert from another thread. The key part is using a MethodInvoker to protect your code from cross-thread operations and show the alerts in the UI thread rather than the background one.

    Please give the attached application a try and see how it works on your end.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top