This is a migrated thread and some comments may be shown as answers.

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

7 Answers 117 Views
ShapedForm
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 22 Jun 2007, 09:55 PM
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

7 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 25 Jun 2007, 10:09 AM
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
0
john
Top achievements
Rank 1
answered on 25 Jun 2007, 05:31 PM
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.

 

0
Mike
Telerik team
answered on 26 Jun 2007, 02:41 PM
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
0
john
Top achievements
Rank 1
answered on 26 Jun 2007, 03:19 PM
thanks for the attention guys, but i figured out what i was doing wrong yesterday. 

i appreciate your time...

-
john

0
Mike
Telerik team
answered on 27 Jun 2007, 02:10 PM
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
0
john
Top achievements
Rank 1
answered on 30 Jun 2007, 10:14 PM
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....
0
Jack
Telerik team
answered on 03 Jul 2007, 10:43 AM
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
Tags
ShapedForm
Asked by
john
Top achievements
Rank 1
Answers by
Jack
Telerik team
john
Top achievements
Rank 1
Mike
Telerik team
Share this question
or