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

How to make an application look busy?

48
Hi all,

Is there a way or method wherein I can make my windows application busy as long as a method on a separate thread is executing without interrupting the running thread?

For example, when I execute a method on a separate thread (not on the UI thread) which takes around 10 seconds to complete; it is in this interim that I would want my application to be busy as though the method was called from the UI thread.

Though I achieved it by changing the cursor to a busy cursor for the duration of the method that is executing but that's superficial - in the sense that the user would still be able to interact with the form by clicking on the buttons, or by entering some text into the textbox.

Any help would be appreciated.


Regards,
Aads
Sep 23 '10 #1
2 1185
Why don't you just disable the controls while the application is "busy"? There is an enabled property on the base control class. Just set this to false and then when you are done set it back to true.
Sep 24 '10 #2
Aads
48
Thanks for your quick reply - that's a great idea to solve this problem! But was just wondering if there is any alternative or a way wherein we could make the application look busy.

Many thanks.
Aads
Sep 24 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Aubrey Hutchison | last post by:
I have exhausted places to look for where "PYTHONPATH" is located.. In windows (using the DOS command) no such thing exist but path does. I find no file with that name. I have yet to find a...
0
by: Anina | last post by:
It looks like the button control captures all of the clicks on the button no matter if the program is busy accessing code. For example: if the click event of a button has code that takes 10 seconds...
5
by: BOOGIEMAN | last post by:
I want to put my console application to wait some time (for example 10 seconds) How do you do that ? Also, how does "Press any key to continue" code look like in C# ? If it helps, I can post here...
0
by: bq | last post by:
When I automate Word application in ASP .NET as below: Dim wordApp As Word.ApplicationClass .. .. wordApp = New Word.ApplicationClass() .. .. When the ASP.NET runs at the above line, it...
0
by: Domino | last post by:
Hi Trying to automate word. Works well on dev box using vs.net (c#). When I deploy it to production I get hit by this error "message filter indicated that the application is busy" Word is...
0
by: mtermoul | last post by:
Hi, I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000 but I keep gettin this error: "The message filter indicated that the application is busy" this is the code....
12
by: Morten Snedker | last post by:
I open a file for input. Each line is handled individually. Every time a line has been handled I wish to wait for ½ second before reading the next. Am I doing it right or wrong ? (I think it's...
1
by: Jean Stachler | last post by:
We have a VB app that is set off automatically when a file exists in a certain directory. The file contains a listing of part numbers which the program reads and than retrieves drawings which are in...
1
by: radix2 | last post by:
hello, anybody can help me to make application encryption(using AES 256 bit)+steganography(using LSB insertion technique)...thanks before..i really need help....
1
nev
by: nev | last post by:
when i do... dgv.enabled = false dgv gets disabled as in you are unable to use the control. but it looks enabled because its appearance is still the same. Unlike a textbox which becomes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
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
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...

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.