473,783 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hourglass control during execution of code ?

I have a procedure that takes certain time to finish. It is triggered by
pushing botton, but a user can't see whether the procedure started or not,
because Access starts showing hourglass cca 20 seconds after the button was
pushed.
I would like to add some hourglass or a message that would be present on the
screen while procedure is runing. How to accomplish it ?

Thanks.
Nov 13 '05 #1
3 6562
Per Zlatko Mati?:
I would like to add some hourglass or a message t


DoCmd.HourGlass True
..
..
..
..
..
DoCmd.HourGlass False
--
PeteCresswell
Nov 13 '05 #2
thank you very much :)!

"(Pete Cresswell)" <x@y.z.invali d> je napisao u poruci interesnoj
grupi:od******* *************** **********@4ax. com...
Per Zlatko Mati?:
I would like to add some hourglass or a message t


DoCmd.HourGlass True
.
.
.
.
.
DoCmd.HourGlass False
--
PeteCresswell

Nov 13 '05 #3
Zlatko:

You will also want to make sure that you turn off the hourglass in any error
handling in your code. If you do not do this and your code encounters an
error before in gets to the line where you turn off the hourglass, the
hourglass will remain visible.

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"Zlatko Matić" <zl***********@ sb.t-com.hr> wrote in message
news:d5******** **@ss405.t-com.hr...
I have a procedure that takes certain time to finish. It is triggered by
pushing botton, but a user can't see whether the procedure started or not,
because Access starts showing hourglass cca 20 seconds after the button was pushed.
I would like to add some hourglass or a message that would be present on the screen while procedure is runing. How to accomplish it ?

Thanks.

Nov 13 '05 #4

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

Similar topics

1
2308
by: José Joye | last post by:
Hello, I'm playing around with dynamically loading user controls ...and having problems I created a really simple userControl (in fact contains a plain text box) and placed it into the MyTestCtrl2.ascx file. In an aspx file I placed the following in the Page_Load method:
7
2707
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote server returned an error: (500) Internal Server Error." I found a post that suggested to catch the WebException to retrieve the actual HttpWebResponse object for more information. The response returned is shown below. At first I thought this was a...
6
1688
by: Art | last post by:
Hi I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form in the main project My problem is that I would like events (leaving the text box) to be recognized in the main project. Alternatively I would like to be able to access classes in the main project -- I would like to be able to have the class with...
8
16997
by: Eddie | last post by:
Hi All, I just want to change the mouse cursor during a process. I want a hourglass... How may I do it ? Thx
6
6371
by: Lars | last post by:
Hi, I have created a simple custom PrintPreviewDialog consisting of a simple standard PrintPreviewControl (.NET 1.1) on a WindowsForm with a few buttons (for printing, zooming, etc.). It is working fine, except for that I cannot figure out how display the waitcursor / hourglass while the preview is preparing to show the document *and then go back to the default cursor when the document is displayed*. Turning on the waitcursor is easy,...
4
7735
by: Raghu | last post by:
I have developed a web portal that uses ReportViewer web control to connect to a remote SQL 2005 Report server and displays the reports on the client side. The asp.net page has been coded to automatically impersonate a specific user who has access to the report server so that the customer don't get a pop-up asking for login credentials. Once the report has been displayed in the Report viewer control, I am getting an error when I click on...
0
2093
by: nate | last post by:
the error returned is this: Server Error in '/AnnAccRpt' Application. -------------------------------------------------------------------------------- Could not find control 'DropDownList1' in ControlParameter 'DropDownList1'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
7
4286
by: Henry Stockbridge | last post by:
Hi, I am running the following code and the visibility of the Hourglass appears late, instead of immediately. Any ideas of how I can remedy this? ============= Private Sub lblUpdateMDList_Click()
0
5897
by: =?Utf-8?B?Sm9ieTY0?= | last post by:
I really do not understand what I am doing wrong. I was trying to get familiar with WebParts and I am getting the following error: The DataSourceID of 'DataList1' must be the ID of a control of type IDataSource. A control with ID 'SqlMeggitt' could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10083
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6737
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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 we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.