473,480 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Providing user feedback in windows forms

I am primarily a web developer, but have to develop this windows app.
It works a treat, but it has some places where it lags and some long
running processes, which I want to provide user feedback to the user
from.

I want to open a seperate windows form with an animation on it and a
label that is public so i can change the text on it as the process
progresses, but all I get is a blank form until the process is done.

Can someone please provide me with some sample code how to open a form
like this. I tried threading, but kep getting cross thread errors.

thanks,
ryk

Aug 17 '06 #1
1 1684

"Rykie" <ry**********@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
>I am primarily a web developer, but have to develop this windows app.
It works a treat, but it has some places where it lags and some long
running processes, which I want to provide user feedback to the user
from.

I want to open a seperate windows form with an animation on it and a
label that is public so i can change the text on it as the process
progresses, but all I get is a blank form until the process is done.

Can someone please provide me with some sample code how to open a form
like this. I tried threading, but kep getting cross thread errors.
Are you trying to do the new form as the second thread? I think in a
situation like this you really need to be sub-threading the operation that
is taking some time, the popup animation form would then run in the same
thread as the main form and display correctly.

I just put a time-consuming operation in it's own method then start that as
a new thread:

Thread tWork = new Thread(new ThreadStart(worker));
tWork.Start();
frmProgress pForm = new frmProgress();
pForm.Show();

private void worker()
{
//do busy stuff here
}
Thats sort of how I'd do it - you'd need to work out how to get rid of the
popup form of course... the cross thread errors you get will probably occur
as a result of you trying to modify something on the form from a sub thread
or similar - this generally causes troubles.
Aug 17 '06 #2

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

Similar topics

88
12306
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
4
3252
by: Michiel Alsters | last post by:
Hello everybody, I hope anybody can help me. I'll try to give a brief overview of my problem. I have running a program that performs a heavy calculation. To give the user feedback what the...
0
1841
by: Daimy | last post by:
I meet the same problem below, please help me! Thanks! //written by some one I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar...
1
1519
by: Sam Smith | last post by:
Dear All I would be really grateful if someone would help me. I have scoured the docs and the web for this I am writing a VC++ application, using .NET and Windows Forms. I am using Visual C++...
5
2041
by: Norsoft | last post by:
I have a .Net 1.1 application which is downloaded into an aspx page. It is a dll which inherits from System.Windows.Forms.UserControl. It works fine on a PC with only the 1.1 Framework. However,...
6
1275
by: Gary Kahrau | last post by:
I am planning a very large project in vb.net and I want to make it modular. If the project needs 200-300 forms what do you think about creating a user control for each of these forms? The main...
3
989
by: pRobinson | last post by:
I would like to add a user to the windows NT group within a webpage in ASP.net. But I can't seem to find info to guide me in the right direction. I currently have a SQL Database storing the user...
3
2770
by: Terry Olsen | last post by:
I'm trying to add a domain user to a local group using the code below: Dim LCL As New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim DOM As New...
4
3774
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
0
6905
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
7080
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...
1
6736
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...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2994
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...
0
2980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1299
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 ...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
178
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...

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.