|
-
Feb 16th, 2005, 02:20 AM
#1
Thread Starter
Hyperactive Member
TaskBar text [SOLVED]
Does anyone know how I can show my me.Text on the taskbar?
I have a % counter in combination with the estimated time for a procedure in my Me.Text and I want to show it on the taskbar.
I thought that if I'd put it in the me.Text it would automaticly be seen in the taskbar....not!
Last edited by HWijngaarD; Mar 8th, 2005 at 01:52 AM.
-
Feb 21st, 2005, 05:51 PM
#2
Re: TaskBar text
It will, but the Taskbar only refreshes when it's sensible to do so, so unless the form tells it to refrsh that instant, it may be a second or so before you see the change.
You can do this by calling the DoEvents method and if that doesn't react fast enough for you, call the forms Refresh method, but bear in mind that it could slow down your process considerably, i.e.
VB Code:
Dim i As Integer
For i = 1 To 1000000
Me.Text = String.Format("{0}%", Int((100 / 1000000) * i))
Application.DoEvents()
Next
-
Mar 8th, 2005, 01:33 AM
#3
Thread Starter
Hyperactive Member
Re: TaskBar text
Thanks man,
I will try this!
And indeed refresh is not an option because of the grease in my form.
It works perfectly!
Last edited by HWijngaarD; Mar 8th, 2005 at 01:52 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|