473,770 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

giving info on form while doing process long time

Hi,
My application is processing a database(select ing data using execute
reader)
It takes much time.
I want to show user the application is running, showing some
information in the form
I tried with thread, timer, but not helpful
any simple idea to show user application is not frozen

Thanks,
Mani

Jun 15 '07 #1
5 2383
Hello.
Take a look at the BackgroundWorke r control. I think that's exactly what you
are searching for.

http://msdn2.microsoft.com/de-de/lib...9b(VS.80).aspx

"Manikandan " wrote:
Hi,
My application is processing a database(select ing data using execute
reader)
It takes much time.
I want to show user the application is running, showing some
information in the form
I tried with thread, timer, but not helpful
any simple idea to show user application is not frozen

Thanks,
Mani

Jun 15 '07 #2
On 15 Jun, 11:24, Christian <Christ...@disc ussions.microso ft.com>
wrote:
Hello.
Take a look at the BackgroundWorke r control. I think that's exactly what you
are searching for.

http://msdn2.microsoft.com/de-de/lib...9b(VS.80).aspx

"Manikandan " wrote:
Hi,
My application is processing a database(select ing data using execute
reader)
It takes much time.
I want to show user the application is running, showing some
information in the form
I tried with thread, timer, but not helpful
any simple idea to show user application is not frozen
Thanks,
Mani
Hi,
My application uses .NET framework 1.1 only but backgroundworke r is
in .NET2.0

Jun 15 '07 #3
ok, it's a little bit harder without backgroundworke r, because you have to do
the threading-things on your own.

look at this article:
http://www.code-magazine.com/article...0403071&page=1

i didn't reasearch in detail now, but you can search for it on your own when
you search for "asynchrono us programming"...
you have to use methods like BeginInvoke(), EndInvoke() and so on.

i hope this was helpful.

"Manikandan " wrote:
On 15 Jun, 11:24, Christian <Christ...@disc ussions.microso ft.com>
wrote:
Hello.
Take a look at the BackgroundWorke r control. I think that's exactly what you
are searching for.

http://msdn2.microsoft.com/de-de/lib...9b(VS.80).aspx

"Manikandan " wrote:
Hi,
My application is processing a database(select ing data using execute
reader)
It takes much time.
I want to show user the application is running, showing some
information in the form
I tried with thread, timer, but not helpful
any simple idea to show user application is not frozen
Thanks,
Mani

Hi,
My application uses .NET framework 1.1 only but backgroundworke r is
in .NET2.0

Jun 15 '07 #4
* Manikandan wrote, On 15-6-2007 12:37:
On 15 Jun, 11:24, Christian <Christ...@disc ussions.microso ft.com>
wrote:
>Hello.
Take a look at the BackgroundWorke r control. I think that's exactly what you
are searching for.

http://msdn2.microsoft.com/de-de/lib...9b(VS.80).aspx

"Manikandan " wrote:
>>Hi,
My application is processing a database(select ing data using execute
reader)
It takes much time.
I want to show user the application is running, showing some
information in the form
I tried with thread, timer, but not helpful
any simple idea to show user application is not frozen
Thanks,
Mani

Hi,
My application uses .NET framework 1.1 only but backgroundworke r is
in .NET2.0
Some people ported the backgroundworke r back to .NET 1.1.

http://weblogs.asp.net/rosherove/art...undWorker.aspx
http://www.vsdotnet.be/blogs/tommer/...190e3cdb7.aspx

Jesse
Jun 15 '07 #5
* Manikandan wrote, On 15-6-2007 12:37:
On 15 Jun, 11:24, Christian <Christ...@disc ussions.microso ft.com>
wrote:
>Hello.
Take a look at the BackgroundWorke r control. I think that's exactly what you
are searching for.

http://msdn2.microsoft.com/de-de/lib...9b(VS.80).aspx

"Manikandan " wrote:
>>Hi,
My application is processing a database(select ing data using execute
reader)
It takes much time.
I want to show user the application is running, showing some
information in the form
I tried with thread, timer, but not helpful
any simple idea to show user application is not frozen
Thanks,
Mani

Hi,
My application uses .NET framework 1.1 only but backgroundworke r is
in .NET2.0
A direct download link for th e1.1 background worker:

http://www.idesign.net/idesign/Deskt...9&download=115

Jesse
Jun 15 '07 #6

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

Similar topics

3
12877
by: Michael | last post by:
Dear All I have problem with my database server which running SQL server 2000. The server running very slow. The worst case, to save a record required more than 20-30 seconds. Since this problem, I usually monitoring Process Info from Enterprise Manager (Management - Current Activity), and I found a misterious process as follow : 1. User : System
385
17306
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like extraneous jargons, such as in the Unix & Perl community. Unlike mathematicians, where in mathematics there are no fewer jargons but each and every one are
16
7238
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
6
3661
by: MattC | last post by:
I noticed when storing large amounts of information in the StateServer Service that this does not increase in size, the worker process itself seems to grow. I set up a test case to try and prove this, I placed a button on a web form that ran the foloowing code. string temp = "index"; for(int i = 0; i < 1000000; i++) {
7
5391
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. I have tried doing this and using a progress bar that counts up to 100 and then zeros down so that it should be constantly moving while the main or background windows finishes loading. The problem is that the "in progress window" doesn't display...
12
5879
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a FolderBrowserDialog and nothing else. When I start the application and hit EXIT everything works fine. However if it display the FBD box (even if I don't pick a folder and immediately hit cancel) and then try to exit one of two things happens. Either (1) the...
0
1349
by: Terry | last post by:
I want to open a form if it is not already open, otherwise I want to set focus to the existing instance. I have tried three solutions from Google to check activate the existing instance but none seem to work (At least I cannot get them to work...probably me). Can anybody help please? Terry 1: http://www.developerfusion.co.uk/show/3107/ 2: http://devhood.com/tutorials/tutorial_details.aspx?tutorial_id=726 (This seemed the most likely...
15
4642
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
0
9454
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
10260
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
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
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
7456
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
6712
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
5354
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...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.