473,699 Members | 3,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding a Progressbar (while loading a Form)

In my MDI parent form I choose to open a Child thru a MenuClick... I want a
progressabar to show up and progress allthru the loading of the new Child
Form.. and then when it's done I want the progressbar to disapear and the
child so show up.

Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,

/Lars
Nov 20 '05 #1
11 3556
Hi Lars,

For a progressbar you need the duration of the process. When I read your
message I think you do not have that.

A simple red sign (which turn to green when ready) in the statusbar from the
program will probably have the same effect because users know those things
from IE.

However you can also just create a from in your load event as
dim frm as new form
Add to that frm some things and than
frm.show
and close that at the end of the load event with
frm.close

I hope this gives some idea's?

Cor
Nov 20 '05 #2
* "Lars Netzel" <[no_spam_please]la*********@qlo gic.se> scripsit:
In my MDI parent form I choose to open a Child thru a MenuClick... I want a
progressabar to show up and progress allthru the loading of the new Child
Form.. and then when it's done I want the progressbar to disapear and the
child so show up.

Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,


Where should the progressbar be shown?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
as a separat window on top of everything I guess!

/Lars

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> skrev i meddelandet
news:2g******** ***@uni-berlin.de...
* "Lars Netzel" <[no_spam_please]la*********@qlo gic.se> scripsit:
In my MDI parent form I choose to open a Child thru a MenuClick... I want a progressabar to show up and progress allthru the loading of the new Child Form.. and then when it's done I want the progressbar to disapear and the child so show up.

Sometimes there's a lot to load in these child windows and I feel I want to show the user that something is "going on" and not just have them wait and think the application hung,


Where should the progressbar be shown?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4
Ithink Cor's idea may the appropriate. Create a GIF animation of the world
tunring or whatever, and display it in a nother window, wait 5 seconds or
how ever long it takes to launch the child window. It would almost belike
delting files in Windows Explorer. The animation of the files flying! :)

Luis

"Lars Netzel" <[no_spam_please]la*********@qlo gic.se> wrote in message
news:ed******** ******@TK2MSFTN GP10.phx.gbl...
as a separat window on top of everything I guess!

/Lars

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> skrev i meddelandet
news:2g******** ***@uni-berlin.de...
* "Lars Netzel" <[no_spam_please]la*********@qlo gic.se> scripsit:
In my MDI parent form I choose to open a Child thru a MenuClick... I want a progressabar to show up and progress allthru the loading of the new Child Form.. and then when it's done I want the progressbar to disapear and the child so show up.

Sometimes there's a lot to load in these child windows and I feel I
want
to show the user that something is "going on" and not just have them
wait
and think the application hung,


Where should the progressbar be shown?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #5
* "Anon" <an**@anon.co m> scripsit:
Ithink Cor's idea may the appropriate. Create a GIF animation of the world
tunring or whatever, and display it in a nother window, wait 5 seconds or
how ever long it takes to launch the child window. It would almost belike
delting files in Windows Explorer. The animation of the files flying! :)


.... there is a progress bar too in Windows Explorer's file copy dialog ;-).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
> > Ithink Cor's idea may the appropriate. Create a GIF animation of the
world
tunring or whatever, and display it in a nother window, wait 5 seconds or how ever long it takes to launch the child window. It would almost belike delting files in Windows Explorer. The animation of the files flying! :)
... there is a progress bar too in Windows Explorer's file copy dialog

;-).

Yes and in a lot of other programs too, they did not make it for nothing,
however what has that to do with the qeustion?

Cor
Nov 20 '05 #7
* "Cor Ligthert" <no**********@p lanet.nl> scripsit:
delting files in Windows Explorer. The animation of the files flying! :)


... there is a progress bar too in Windows Explorer's file copy dialog

;-).

Yes and in a lot of other programs too, they did not make it for nothing,
however what has that to do with the qeustion?


Read the OP's question and the other messages...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8
HI Herfried,
* "Cor Ligthert" <no**********@p lanet.nl> scripsit:
delting files in Windows Explorer. The animation of the files flying! :)
... there is a progress bar too in Windows Explorer's file copy dialog

;-).

Yes and in a lot of other programs too, they did not make it for nothing, however what has that to do with the qeustion?


Read the OP's question and the other messages...

Yes I did, did you also, I see nothing about window explorer?
------------------
Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,
--------------------
Just tickling you know.

:-)

Cor
Nov 20 '05 #9
* "Cor Ligthert" <no**********@p lanet.nl> scripsit:
Read the OP's question and the other messages...

Yes I did, did you also, I see nothing about window explorer?
------------------
Sometimes there's a lot to load in these child windows and I feel I want to
show the user that something is "going on" and not just have them wait and
think the application hung,
--------------------
Just tickling you know.

:-)


Mhm... Did you read the subject?

;-)

BTW: I think it depends on which action is performed when loading the MDI child. If
it's easy to implement a progress bar, I would do it (for example, in
the MDI container's status bar), if it's not as easy, I would use a
marquee progressbar...

Just my 2 Euro cents.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #10

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

Similar topics

2
9191
by: Dinesh Jain | last post by:
Hi all , As we run the .NET exe, first of all it loads all the necessary system dlls and user dlls at load time and then displays the main form of the application. But in between loading these dlls and displaying the main form , it takes some good amount of time. So I want to display progress bar in between. is it possible?
2
4501
by: sotto | last post by:
I need a loginscreen, that will show a progressbar that changes values based on a method in the main application (loading data from database) how would i do this? (i guess i need threading for this) the main application shouldn't be accessible when the login password hasn't been entered correctly. anybody who can give me some help with this?
3
2609
by: Holmes | last post by:
Hello Ran into a bit of a problem here and have now exhausted my resources to getting this working What I am trying to do is load and show a simple vb form with a listbox in it Dim frm_nc_code As New frm_nc_sen frm_nc_code.Show( Well what I want to have happen is it loads the form then shows all of the controls on the form (especially the listview control which should be blank at this time)
1
696
by: nobody | last post by:
Hi I'm currently developing a Windows application. At the start of the application I load several tables into datatables in a dataset. I also use a progressbar to show the user how much percent of the total is already loaded. But I do this in a dirty way: I increment the progressbar with the same number after each table, but not all tables contain the same amount of data. I solved this with starting an other thread to increment the...
6
1917
by: Sam | last post by:
Hi, I have to process a large data loading in my form. In order to give a feedback on the loading status, I'd like to display a progressbar in a popup, in the middle of the screen. How can I do that, as the progressbar is not in the same form as my data structures? Thx
3
2090
by: Toe Dipper | last post by:
In short we have a lengthy process when a form is loaded that adds activex controls to our windows form. This process in itself works fine however we would like to push this processing to a thread but are stumped so far. Our goal is simply to allow the form to fully display while the controls are being added. Preferrably with a progressbar to let them know that the form is still being built. Here are some snippets.
2
11116
by: =?Utf-8?B?QWFyb24=?= | last post by:
Since some controls such as the DataGridView take a long time to update themselves when performing certain tasks, I have added a StatusStrip with a ProgressBar on it. While I am updating the controls on the form, I want the ProgressBar to scroll in marquee mode. However, I cannot seem to get this to work. I set the StatusStripLabel to the text I want such as "Updating data..." and then set the ProgressBar's Style property to Marquee...
0
1547
by: prathamesh.s.kulkarni | last post by:
I have a MDI Application. It has a simple menu. On clicking menu items, child forms open. Since, the loading of the form was taking quite sometime, I have separated the loading of data by using a background thread. Now, first the UI elements are loaded, the form is displayed and then the data is loaded. But, still the form (UI elements) take sometime to load and on the click of a menu item, the menu remains for sometime in a frozen state...
4
4360
by: Thomas | last post by:
Hello, I don't know if such question was already posted but I didn't find anything through different posts. I have the Main MDI window with a StatusBar. Inside my StatusBar there is a ProgressBar. When I click on the menu in my MDI Parent, a child form is loaded. I would like to know if there is a way to increment a progressbar value while child form is loading ? I tried to use background worker but i had some cross thread access...
0
8704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9187
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8894
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6540
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2360
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.