How can I use a Background Image on an ellipse ShapedForm?

8 posts, 0 answers
  1. john
    john avatar
    13 posts
    Member since:
    Jun 2007

    Posted 22 Jun 2007 Link to this post

    i'm trying to do a splash screen that's elliptic in shape, but i can't figure out how to set a background image for it.

    thanks...

    -
    john
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 25 Jun 2007 Link to this post

    Hi John,

    I suggest using a SplashForm instead of ShapedForm:

        SplashForm form = new SplashForm();
        form.BackgroundImage = myImage;
        form.Show();


    If you prefer the ShapedForm, then drop a RadPanel inside the ShapedForm and set it's Dock property to Fill. Then use RadPanel's BackgroundImage property to set your image.

     
    Greetings,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. john
    john avatar
    13 posts
    Member since:
    Jun 2007

    Posted 25 Jun 2007 Link to this post

    sorry jack, i can't get either to work.  it compiles fine, but never shows anything. 

    setting an instance of a splashform with an image and trying to "show" it does nothing.

    doing it the other way, with a shaped form and panel, does the same thing.
    _______________________________________________________
    Nevermind, i've seen the light.   thanks for your time, jack.

     

  5. Mike
    Admin
    Mike avatar
    640 posts

    Posted 26 Jun 2007 Link to this post

    Hi john,

    Here is a sample that demonstrates the panel-based approach we proposed previously. Please check the code in the Forms constructor that sets some details of the form. We used the RadPanel control for more flexibility and to avoid flickering, but the standard panel is an option too. Let us know if this solution suites your needs.
     

    Best wishes,
    Mike
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. john
    john avatar
    13 posts
    Member since:
    Jun 2007

    Posted 26 Jun 2007 Link to this post

    thanks for the attention guys, but i figured out what i was doing wrong yesterday. 

    i appreciate your time...

    -
    john

  7. Mike
    Admin
    Mike avatar
    640 posts

    Posted 27 Jun 2007 Link to this post

    Thank you for the feedback, john. We are always glad to know a problem has been solved. Feel free to share the solution here, if you have time.

    We will be happy to help you with anything else.
     

    Greetings,
    Mike
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. john
    john avatar
    13 posts
    Member since:
    Jun 2007

    Posted 30 Jun 2007 Link to this post

    i ended up using an elliptic shaped form; however, i would like to use the SplashFrom but did not have any luck in doing so.  any help with that would be greatly appreciated.

    thanks....
  9. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 03 Jul 2007 Link to this post

    Hello John,

    We will be glad to help you, however we will need to see the source of your application. I have attached a sample application that uses the SpalshForm which may help you in achieving your goal.

    In case this does not help, please open a support ticket and send us your application.

     
    Regards,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready