Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 October 12th, 2004, 03:22 PM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hourglass cursor

When loading a Crystal Report through .NET in a windows form, I'd like to be able to display an hourglass while the report is loading so that it doesn't look like the application is locking up. I haven't found anything about hourglass cursors in .NET documentation or online help. I am programming in VB.Net. Does anyone have the solution to this?

 
Old October 12th, 2004, 08:14 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may like to try this code in

'set cursor to application starting...
Me.Cursor() = Cursors.AppStarting

CrystalReportViewer1.ReportSource = crReport

'set back cursor to default...
Me.Cursor() = Cursors.Default

Hope this helps
Kenny

 
Old October 13th, 2004, 09:22 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In inserting this code, I get two errors:

1) 'Cursor' is not a member of 'form'
2) 'Cursors' is not declared

thanks for your input.

BTW- I'm using VB.Net for programming language.

 
Old October 13th, 2004, 11:56 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I discovered that I was missing the reference System.Windows.Forms and added it. The code does not show any errors, but the cursor does not change.

I've noted a few other points of code that name the cursor ("Busy.cur") etc. but the code is looking in the wrong folder for that cursor. It seems like using the windows defaults would be the better direction to go... but still I am not getting the cursor to display.

 
Old October 14th, 2004, 05:36 AM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am doing it this way:

Cursor.Current = Cursors.WaitCursor '# for hourglass

Cursor.Current = Cursors.Default '# for normal


 
Old October 14th, 2004, 10:53 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just realized another pertinent factor here. I keep forgetting that the programming for windows forms is totally different than formatting for web forms. What I am attempting to do is with web forms.

The code presented so far does not display any cursor change in my web forms.

Thanks for helping!

 
Old October 14th, 2004, 01:39 PM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I do not think you can change cursor in webforms at all however there is a thing called buffer I think there might be a way of doing it thru that look at this example it might give you an idea...

change the buffer to TRUE to see the difference

<%@ Page Language="VB" %>


<html>
 <body>
  <%
  Response.Buffer=False
  Dim i as Integer
  For i = 1 to 50000
    Response.write(" X")
  next
  %>


 </body>
</html>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Magnetic Cursor - Target Area Cursor? gcarcass .NET Framework 2.0 1 May 5th, 2008 07:20 AM
Hourglass with C# khautinh C# 2 October 3rd, 2007 02:35 AM
Regarding Cursor param99 SQL Language 0 September 8th, 2006 03:56 AM
Preventing operations with Hourglass Mousepointer krithi20 Pro VB 6 5 August 23rd, 2005 04:50 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.