Loading in Panel

  • Thread starter Alhambra Eidos Kiquenet
  • 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.
 
C

Ciaran O''Donnell

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.
 

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