473,511 Members | 14,052 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hi guys!! what method should i use to function the progress bar?

Paul NIcolai Sunga
43 New Member
hello... i really need your help guys...what method should i used to function the progress bar?..


thanks..
Oct 20 '08 #1
4 1244
Paul NIcolai Sunga
43 New Member
i mean, progress bar in vb .net..thankz
Oct 20 '08 #2
artov
40 New Member
ProgressBar has property Value. Increase (or decrease) it as needed.
Oct 20 '08 #3
joedeene
583 Contributor
Yes, the ProgressBar Class in VB.NET, does have the value property, but if you want to do a function based on the length of something there's a function in the above link based on copying a file by it's length.

joedeene
Oct 20 '08 #4
tlhintoq
3,525 Recognized Expert Specialist
i mean, progress bar in vb .net..thankz

In theory the action that is taking a long time should be in its own thread. That way it doesn't hang up the entire program.

Part of that long-time method should include raising an event.
The event should have event arguments stating what its current status or progress is. Maybe those arguments are percent complete. Maybe its time remaining. Maybe its number of records. That's for you to work out based on the function.

Your progress bar should subscribe to those events.
When the long-time process raises an event, the progress bar 'hears" the event and reacts by updating, based on the arguments.

This keeps your program response 'snappy', your long term function isolated from your progress bar, and your progress bar isolated from the long term function.

Of course you probably want to give the progress bar function enough smarts to time-out after xx minutes etc.
Oct 21 '08 #5

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

Similar topics

1
1873
by: OKB (not okblacke) | last post by:
I've noticed some peculiar behavior from copy.deepcopy: if you pass it a method or function object, it raises a TypeError somewhere in copy_reg saying "function() takes at least 2 arguments (0...
0
1123
by: Gautham Jayaraman | last post by:
Hi All, Please let me know, If anybody in the group knows how to create a new Custom Method Wizard for your class. In the Class View, for my class, I want to right click and add a my method...
2
7124
by: The Mess | last post by:
I am using VB5. I wish I had a function to draw a line, giving the angle and length but I do not have the math skills involved to do this. Does anyone have a function that they care to share that...
4
1448
by: Sullivan WxPyQtKinter | last post by:
In python, these expression seems yields the same result: inputstring='ABC' print inputstring.lower() print lower(inputstring) print string.lower(inputstring) result: abc
1
2866
by: Pankaj | last post by:
Hello friends, I am implementing something like PM |------------------------------------------------------ | | | | | ------- -|...
4
2628
by: seaside | last post by:
Currently, I use this call traceVariable( $_SERVER, '$_SERVER' ); to pass a variable by reference to 'traceVariable' and by value a description string. Since the description string is very...
12
11048
by: trullock | last post by:
Hi, Is there a way to call a codebehind method/function from an attribute of a runat=server tag, kinda like this: <asp:Literal runat="server" ID="litTest" Text='<%# MyMethod("testargs") %>'...
10
3470
by: Matthew | last post by:
Am I correct in thinking there is no method/function overloading of any kind in any version of PHP? Thanks, Matthew
1
1460
by: lafayettejohnson | last post by:
The positionOf() method, it is declared as private in the private section of the set class declared in the .h file. You define the method the exact same way you define public methods, in the .cpp...
6
3283
guillermobytes
by: guillermobytes | last post by:
Hi, I was wondering if there is a way (from an interface or abstract class) to force all classes implementing some method to return a specific type, like in Java. example : //method can only...
0
7245
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
7144
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
7356
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,...
1
7085
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
5069
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
4741
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
3227
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
1577
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 ...
0
449
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.