Jump to content

  • Log In with Google      Sign In   
  • Create Account


Change default when using RenderForm


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 turizoft   Members   -  Reputation: 101

Like
0Likes
Like

Posted 22 May 2012 - 08:38 PM

Hi,

As I'm new in these forums, greetings for everyone. I just wanted to know how can I change the default icon which appears as form icon when you declare your application form as a RenderForm. I know in the SlimDx tutorials it is explicit that using RenderForm will turn the form icon to SlimDX one, the question is ¿How to use a custom one?

I've also tried changing it via project settings in Visual C#, but still it displays SlimDX one.

Thanks in advance for any help provided.

Turizoft

Sponsor:

#2 NickUdell   Members   -  Reputation: 288

Like
0Likes
Like

Posted 23 May 2012 - 07:55 AM

Can you access the form's properties in the designer and set it there?

Otherwise since Renderform inherits from Form, you should be able to use:

Renderform form = new Renderform(blahblah);
form.Icon = new System.Drawing.Icon("iconpath.jpg");

Sole Creator of Pigment - a procedural, block-base space trading sim.

PhD student working on medical imaging at the University of Southampton.

Enjoyer of games, films, books and cider.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS