?
Solved

Label text not appearing during processing...

Posted on 2007-12-05
2
Medium Priority
?
304 Views
Last Modified: 2013-11-07
On my form, I have a link label that basically displays any time that was discovered in the user's Outlook calendar:
xx:yy of appointments found

On the days where there are none, the label simply doesn't appear.

I have all this processing occuring in a sub - and would like the user to know that when they change the date, that the calendar information is being queried, so in that routine, I make the link label visible, and change the text.  However, I never see that bit of information when I run the code.

What could be missing, or how can I get this 'please wait' text to display?
Here's a portion of the code in that routine:
Application.DoEvents()  'thought this would help...but it hasn't
 With lnkAppointments
   .Visible = True 'start out by making the label visible
   .Text = "Retrieving appointments ..." 'change the text to let the user know the appointments are being queried
 End With
 
'[Code to connect with Outlook and retrieve appointments...] 
 
  If ts.TotalMinutes = 0 Then ' if the timespan in minutes is 0, simply hide the link label
    lnkAppts.Visible = False
  Else
    With lnkAppts
      .Text = Format(ts.Hours, "#0") & ":" & Format(ts.Minutes, "00") & " found." ' if the timespan is not 0, then display the amount of time discovered.
  End With

Open in new window

0
Comment
Question by:sirbounty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 1000 total points
ID: 20413894
Did you try putting Application.DoEvents() after you set the text on the label?
 With lnkAppointments
   .Visible = True 'start out by making the label visible
   .Text = "Retrieving appointments ..." 'change the text to let the user know the appointments are being queried
 End With
Application.DoEvents()

Open in new window

0
 
LVL 67

Author Comment

by:sirbounty
ID: 20414357
Nope - I hadn't...
Thank you very much! :^)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question