Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Form loading and theme efficiency?

So right now I am close to finishing off a program I am coding. I have noticed when I use controls from a theme (link: hackforums.net/showthread.php?tid=3559385) when loading the controls start white then appear, and when resizing with anchors the controls (such as buttons/textboxes) will freeze, update and freeze again instead of resizing fluently with the main form.

Is there any way of preventing or minimising this?
Well, GDI+ is not known to be super fast, check if double buffering is enabled for all of the controls. Are you using a ton of controls on a single form?
If you are not willing to delve into the inner code of the theme then not much can be done otherwise there may be undisposed objects/slow methods etc.
Disclaimer: I have nothing against WindowsForms but if you want to Design into infinity use WPF.

You literally just right click on a Control and create a Style that you then can style into infinity :)
Because DirectX > GDI :)

I'm not trying to start a Fanboy War here,
but I've worked with Forms in the past till the Senior Dev Opened my eyes into a New Universe called WPF (compare it to Mankind's discovery of Fire) :)

Ok enough before i get buried alive here :)
You won't regret it believe me.
(Feb 2, 2017 12:15 PM)iNCEPTiON_V Wrote:  Disclaimer: I have nothing against WindowsForms but if you want to Design into infinity use WPF.

You literally just right click on a Control and create a Style that you then can style into infinity :)
Because DirectX > GDI :)

I'm not trying to start a Fanboy War here,
but I've worked with Forms in the past till the Senior Dev Opened my eyes into a New Universe called WPF (compare it to Mankind's discovery of Fire) :)

Ok enough before i get buried alive here :)
You won't regret it believe me.

+1000

WPF is 'the way'
I will check for double buffering and undisposed objects (I'm sure all of them do dispose). Also, I do not know much about WPF but from doing a quick research, it sounds promising. Thank you for both of your help.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by StudentStonerJun 17, 2018 11:40 AM 10 733 Jun 17, 2018 11:40 AM
Last Post: int
[.NET] by EffexionOct 21, 2017 05:57 AM 2 199 Oct 21, 2017 05:57 AM
Last Post: Effexion
[.NET] by EffexionOct 21, 2017 05:13 AM 0 103 Oct 21, 2017 05:13 AM
Last Post: Effexion