Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2003, 05:31 PM
Authorized User
 
Join Date: Jun 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hourglass with C#

I am just about to learning C# and I am trying to find out how to set up hourglass. Please Help me!
 
Old July 10th, 2003, 02:42 AM
Registered User
 
Join Date: Jul 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cursor StoredCursor = this.Cursor ; //store your current Cursor
..............
..............
..............

this.Cursor = Cursors.WaitCursor ; //HourGlass is ON and default Cursor is OFF
.......................
this.Cursor = StoredCursor;//default Cursor is ON and HourGlass is OFF

 
Old October 3rd, 2007, 02:35 AM
Registered User
 
Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To set cursor on application level, use Cursor.Current property, see example C# Hourglass Cursor.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing operations with Hourglass Mousepointer krithi20 Pro VB 6 5 August 23rd, 2005 04:50 PM
Hourglass cursor toekneel Crystal Reports 6 October 14th, 2004 01:39 PM
HourGlass Mouse Pointer Help rubymist3 Excel VBA 4 December 2nd, 2003 12:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.