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

Application form hangs but it is working

20
Hi all,

I have win7 pro, on my win form is a traffic light icon(when it starts it is red, when finished it is green), so that I know when job is finished. But when I run application icon isn't changing and form hangs it self, can not do nothing until job is finished. Only in the end, I see that icon is quickly changes to red and then back to green.

Applications is working with PDF files. But I think maybe it can be a problem in memory allocation.

Any ideas?
Apr 21 '11 #1

✓ answered by R MacDonald

Hello, bdmir,

The problem is probably happening because the screen (user interface) cannot update until the code in the form finishes. The usual way to handle this is to use a separate thread for executing the long running procedure. Look up "BackgroundWorker" in the Help index and see if you can make use of that for this application.

Cheers,
Randy

1 1693
Hello, bdmir,

The problem is probably happening because the screen (user interface) cannot update until the code in the form finishes. The usual way to handle this is to use a separate thread for executing the long running procedure. Look up "BackgroundWorker" in the Help index and see if you can make use of that for this application.

Cheers,
Randy
Apr 21 '11 #2

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

Similar topics

6
by: Robert C | last post by:
I have 2 forms, an unbound which calls a bound form via a command button. Both forms have a textbox called TDate. The name of the calling form is SelectionFrm. When I set the DefaultValue...
6
by: Benjamin Day | last post by:
Does anyone ACTUALLY have the application updater block working? I've been beating my head against the wall on this one for about 3 days. It looks cool. It seems promising. I've even read this...
1
by: logik3x | last post by:
I'm developping a program to automate the submisson of grades to a website called omnivox.ca (http://brebeuf.omnivox.ca). My problem is that I can't get the login working. I get the cookie right...
1
by: Ryan Liu | last post by:
Hi, can someone tell me how to make an application/form blanking at the taskbar with FormWindowState.Minimized form state? I see MSN or Yahoo chat work this way. When a new message arrive, the...
0
by: SonOfNel | last post by:
Hey folks, I'm creating a program that will listen for a new file created in a specified directory. I've created a FileSystemWatcher object named watcher that does the job just fine. I then added an...
0
by: fswfsw | last post by:
I am using Microsoft visual studio 2005. Also i use windows application form. Now i have met some problem. I don't know how to output "int" or "wchar_t" types in the window application form? ...
3
by: alok kumar | last post by:
Hi , This is Alok here. I want to creat a windws application form using c#. It contains a Tree View . I want to access all the Drives (C:\ , D:\ , E:\ etc.) and included directories and files in...
17
by: Bodyboarder20 | last post by:
Hello! So im working on an applicaiton that all pretty much sits on a single form. When the application completes a task, I'd like it to use FlashWindow() to notify the user that it has...
4
by: itsmenarwal | last post by:
I am editing my application form.So what i am Doing telling you here..I am already logged in * First of all i am giving a edit link(edit_profile1.php) on my home page * NOw i am asking...
1
by: Rosemary Iyodo | last post by:
how can i store pictures from an application form with the datas via php into database and be able to specified the type,and display it from the database via php showing everything in form with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
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...

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.