Preventing screen updates during initialisation?

M

Martin Robins

Due to the performance issues of Windows Forms on PPC, I am looking at the
option of creating all forms during the initialisation of the main
application form, or alternatively, creating all forms as required, but then
maintaining the instance of the form throughout the life of the application.

This is working fairly well and has resulted in much less flicker when
showing a new form, either on the second showing or when all forms are
created at the beginning.

The problem with the initial creation remains however and even when creating
the forms when the application starts, I am then seeing screen flicker
whilst these forms are created even though they are not being shown.

Is there a way to prevent the screen from accepting any updates whilst this
initialisation is going on, and then reactivating the updates? Effectively,
I am looking to "switch off" the screen whilst the forms are created,
although I do not actually want to switch off and blank the screen.

Cheers.
 
E

Erwin Sommerauer

I worked around this problem by using only one single form. All form
contents are placed on panels that are turned on and off as the program
needs it; all controls placed on the panels become invisible together with
the panels.
This increases the first form load time somewhat, but you have absolutely no
flicker when you activate or deactivate your panels.

Greetings
E.S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top