Loading in Panel

  • Thread starter Thread starter Alhambra Eidos Kiquenet
  • Start date Start date
A

Alhambra Eidos Kiquenet

Hi all, misters


I have a WinForms that contains a Panel. I want to add controls dynamically
to the panel.


My code is similar like this:



SplitContainer1.Panel1.SuspendLayout()

' La primera vez se mostraran solo las X primeras paginas, ya no son todas

For numPag As Integer = 1 To contadorMiniaturas

....

SplitContainer1.Panel1.Controls.Add(contenedorPagina)

Next

SplitContainer1.Panel1.PerformLayout()



I want show to the user, an image with text "Loading...",



how I can do it ? SuspendLayout and PerformLayout is right use ??



Thanks in advance.
 
You would need to call ResumeLayout to make the screen redraw properly
afterwards.
To show the loading screen, you would need to make that visible and refresh
the form, then do the work and make it invisible.
 
Back
Top