473,414 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Loading in Panel

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(contenedorPagi na)

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.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Aug 7 '08 #1
1 2822
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.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alhambra Eidos Kiquenet" wrote:
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(contenedorPagi na)

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.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Aug 7 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Doug van Vianen | last post by:
Hi, Some of my applets take some time to load leaving a blank applet panel and the user wondering if anything will be coming up on it. Some applet games, however, have a simple message such as...
0
by: flupke | last post by:
Hi, i need to develop a gui which will load several "windows" depending on what the users selects in the menu and i thought i could accomplish this with panels. What i'm trying to do to test...
0
by: GregO | last post by:
Windows 2000 Server SP3 ..NET Framework 1.1 I have a problem opening the control panel on a number of servers. Only when we kill the asp_wp.exe does the control panel kick into life. Is it...
2
by: Michel | last post by:
Hi folks, Little questions: I need to load different aspx and ascx files, depending on user settings. The files are all identically (the pages contains the same asp components) , except some...
1
by: VB Programmer | last post by:
I have 2 flash menus. I put each of them into a panel (1 in each panel (2 panels total)). One flash menu is 200kb, one is only 50kb. (ie Menu for high speed or slow speed connections.) In...
1
by: Dino Buljubasic | last post by:
Hi, I am using C# VS2005 and I am having a problem that I did not notice before in VS2003. I have created myUserControl that contains a Panel. The panel is loaded dynamically with a number...
1
by: Dino Buljubasic | last post by:
Hi, I have created myUserControl that contains a Panel. The panel is loaded dynamically with a number of ListViews. The number depends on the size of the form (therefore the size of the panel...
0
by: Johnny Emde Jensen | last post by:
Hello Why this. I have a form (frmWorkspace), with some splitter controls. on each splitter panel i place my own usercontrols. One of the usercontrols (ctlWorkbook) have a dynamic...
5
by: marfi95 | last post by:
I have a form that has a left and right panel. In the left panel is a treeview. The right panel I want to change dynamically based on the type of node selected. What I'm doing is loading the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.