473,467 Members | 2,491 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

windows form application


Hi;

I'm having trouble getting my form to refresh a progress and statusbar,
which I've used successfully before.

Also, my application just seems to stop working although it's still running.
Let me explain. It acts like it's paging memory or something. This is a
memory intensive application. Any thoughts appreciated.

None of the code below is working.

StatusBar2.Text = "Begin Updating Field Data "
ProgressBar2.Visible = True
ProgressBar2.Show()
ProgressBar2.Minimum = 0
ProgressBar2.Maximum = doccount + 1
StatusBar2.Refresh()
Me.StatusBar2.Visible = True
frmMain.DefInstance.ActiveForm.Show()
frmMain.ActiveForm.Show()
Me.StatusBar2.Show()
'frmMain.DefInstance.ActiveControl.Show()
System.Windows.Forms.Application.DoEvents()

Regards;

Segue
Nov 23 '05 #1
1 1127
Please don't respond to this I forgot I was reinstantiating the progressbar
when I didn't need to.

Duh.

"segue" wrote:

Hi;

I'm having trouble getting my form to refresh a progress and statusbar,
which I've used successfully before.

Also, my application just seems to stop working although it's still running.
Let me explain. It acts like it's paging memory or something. This is a
memory intensive application. Any thoughts appreciated.

None of the code below is working.

StatusBar2.Text = "Begin Updating Field Data "
ProgressBar2.Visible = True
ProgressBar2.Show()
ProgressBar2.Minimum = 0
ProgressBar2.Maximum = doccount + 1
StatusBar2.Refresh()
Me.StatusBar2.Visible = True
frmMain.DefInstance.ActiveForm.Show()
frmMain.ActiveForm.Show()
Me.StatusBar2.Show()
'frmMain.DefInstance.ActiveControl.Show()
System.Windows.Forms.Application.DoEvents()

Regards;

Segue

Nov 23 '05 #2

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

Similar topics

5
by: joseph | last post by:
Hi, I would like to run a windows application without the user interface. Console application is not a choice because it does not allow to use ADO controls. When I start the Windows Application I...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
6
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
6
by: billr | last post by:
I have developed a small API for taking care of a lot of boiler plate stuff in a multi formed windows application, for example setting up a messaging thread framework. New Forms, in the...
6
by: Dean R. Henderson | last post by:
I have a DTS Package I am able to execute successfully from a Windows Form application, but I cannot get this to work from an ASP.NET Web Service, although the Web Service impersonates the same...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
1
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...
0
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...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.