473,388 Members | 1,188 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,388 software developers and data experts.

ProgressBar while MDI child form is loading

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 exceptions. any ideas ? Thanks in advance.

Thomas

Jun 27 '08 #1
4 4337
You could expose a public method on your main window that allows you to write
the percentage to it from the child.

"Thomas" wrote:
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 exceptions. any ideas ? Thanks in advance.

Thomas
Jun 27 '08 #2
On Jun 10, 5:45 am, "Thomas" <tjask...@nodevo.comwrote:
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 exceptions. any ideas ? Thanks in advance.

Thomas
Check this out.. this should help you do what you want to do.

I use the marquee mode in the progress bar. and then hide/unhide it
as and when needed..
Jun 27 '08 #3
On Jun 10, 5:19 pm, parez <psaw...@gmail.comwrote:
On Jun 10, 5:45 am, "Thomas" <tjask...@nodevo.comwrote:
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 exceptions. any ideas ? Thanks in advance.
Thomas

Check this out.. this should help you do what you want to do.

I use the marquee mode in the progress bar. and then hide/unhide it
as and when needed..
i meant
check this out
http://forums.microsoft.com/MSDN/Sho...89543&SiteID=1
Jun 27 '08 #4
LOL

"parez" wrote:
On Jun 10, 5:19 pm, parez <psaw...@gmail.comwrote:
On Jun 10, 5:45 am, "Thomas" <tjask...@nodevo.comwrote:
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 exceptions. any ideas ? Thanks in advance.
Thomas
Check this out.. this should help you do what you want to do.

I use the marquee mode in the progress bar. and then hide/unhide it
as and when needed..

i meant
check this out
http://forums.microsoft.com/MSDN/Sho...89543&SiteID=1
Jun 27 '08 #5

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

Similar topics

1
by: POnfri | last post by:
Hi I'm having trouble setting the main form visible from within the child form. I have set the main form to hide (SignatureMain.Hide()) I then load the child form from within a button on form1...
8
by: needin4mation | last post by:
Please consider: foreach (ListViewItem item in listViewFiles.Items) { // Display the ProgressBar control. pBar1.Visible = true; // Set Minimum to 1 to represent the first file being copied....
2
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...
2
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...
11
by: Lars Netzel | last post by:
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...
1
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...
6
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...
3
by: AboutJAV | last post by:
Hi, I created a child dialog to tell the user that there is a loading of data from the database. When the loading is done, the child dialog will close. The child dialog contains a custom control...
0
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.