stop showing the repainting of a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
In my application I am trying to load up some forms, however the loading of the forms is causing a lot of flickering. Are there any commands that can stop showing the repainting of the forms and thus make for a smoother running application.

mdiClient.DkManager.LoadConfigFromFile("c:\alpine\aims\QuoteHistoryconfig.xml")
mdiClient.ActiveForm.Controls.Add(mdiClient._filler)
'Controls.SetChildIndex(_filler, 0)
mdiClient.DkManager.InnerControl = mdiClient._filler
mdiClient.DkManager.InsideFill = True
mdiClient.DkManager.OuterControl = _statusBar

Thanx in advance
Geri
 
Hi Hobley,

You may introduce a Splash Screen ... and keep it visible till all the
resources have been loaded after which you may show the main form.

Thank You,
rawCoder

Geraldine Hobley said:
Hello,
In my application I am trying to load up some forms, however the
loading of the forms is causing a lot of flickering. Are there any commands
that can stop showing the repainting of the forms and thus make for a
smoother running application.
 
you could try this:
call SuspendLayout() on the form or control that you are loading and once you are
done loading everything thats on that form or control you can call ResumeLayout().
i haven't tried this but these methods are more or less out there for that purpose
only.

hope this helps..
 
Back
Top