RadMessageBox and SplashScreen

3 posts, 1 answers
  1. QuizzBox
    QuizzBox avatar
    55 posts
    Member since:
    Jan 2011

    Posted 01 Aug 2016 Link to this post

    Hi, 

    I'm using RadMessgeBox during the load of my application (SpashScreen).The messages box appears behind the splash.

    Is there a way to show them in topmost ?

    NB : I don't want to use the shown event of the form, cause the messages box are in objects, not directly in the class form.

    thanx :)

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1533 posts

    Posted 01 Aug 2016 Link to this post

    Hi Nermond,

    Thank you for writing. 

    You can subscribe to the Shown event of the message box and make it TopMost:
    private void RadButton1_Click(object sender, EventArgs e)
    {
        RadMessageBox.Instance.Shown += Instance_Shown;
        RadMessageBox.Show(this, "Test");
    }
     
    void Instance_Shown(object sender, EventArgs e)
    {
        RadMessageBoxForm form = sender as RadMessageBoxForm;
        form.TopMost = true;
     
    }

    I hope this will be useful. 

    Regards,
    Dimitar
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  3. QuizzBox
    QuizzBox avatar
    55 posts
    Member since:
    Jan 2011

    Posted 05 Sep 2016 Link to this post

    Thanks for your help :)
Back to Top