Hi, I have created a class library that I call from within my program
using late binding. The class library contains a form and I allow the
user to do different actions on the form that is part of the class
library dll. I am having a hard time figuring out how to change the
cursor between an hourglass and arrow for those time periods when work
is being done. I have tried
Cursor = Cursors.WaitCur sor and Cursor = Cursors.Arrow, but the class
library does not seem to know what the Cursors class is. Can someone
help?
Thanks a lot!
GB 4 3884
"GatorBait" <MP****@gmail.c om> schrieb Hi, I have created a class library that I call from within my program using late binding. The class library contains a form and I allow the user to do different actions on the form that is part of the class library dll. I am having a hard time figuring out how to change the cursor between an hourglass and arrow for those time periods when work is being done. I have tried Cursor = Cursors.WaitCur sor and Cursor = Cursors.Arrow, but the class library does not seem to know what the Cursors class is. Can someone help?
First, it doesn't matter if it's the same assembly or another one.
Second, you can set the Form's cursor property to change the cursor
permanently. Or, you can change the shared
System.Windows. Forms.Cursor.Cu rrent property. It will only stay as long as
the application is not idle. See <f1> for Cursor.Current.
Armin
"GatorBait" <MP****@gmail.c om> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com... Hi, I have created a class library that I call from within my program using late binding. The class library contains a form and I allow the user to do different actions on the form that is part of the class library dll. I am having a hard time figuring out how to change the cursor between an hourglass and arrow for those time periods when work is being done. I have tried Cursor = Cursors.WaitCur sor and Cursor = Cursors.Arrow, but the class library does not seem to know what the Cursors class is. Can someone help?
I believe the Cursors namespace is in System.Windows. Forms, so you would
need to say
"GatorBait" <MP****@gmail.c om> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com... Hi, I have created a class library that I call from within my program using late binding. The class library contains a form and I allow the user to do different actions on the form that is part of the class library dll. I am having a hard time figuring out how to change the cursor between an hourglass and arrow for those time periods when work is being done. I have tried Cursor = Cursors.WaitCur sor and Cursor = Cursors.Arrow, but the class library does not seem to know what the Cursors class is. Can someone help?
I believe the Cursors namespace is in System.Windows. Forms, so you would
need to say
System.Windows. Forms.Cursor.Cu rrent =
System.Windows. Forms.Cursors.W aitCursor
That may not be exactly right, but you should get the idea.
I got it resolved! Thank you and Armin and Rick for your help!!! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Csaba2000 |
last post by:
I have set onmousedown to change the cursor, but this setting is ignored
(IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the
mouse button is released. On Opera 7.01, the setting seems to be ignored
completely, even when I try with window.setTimeout.
So my two questions are: (1) Most important: Is there anything I can do
so that I don't have to wait for the next mouse event before the cursor
gets repainted. (2) Why...
|
by: Tippy G |
last post by:
Can someone please give me an example of how to change the mousepointer to an
hourglass or whatever other constant in VB.NET? I need to do it from a
start-up module (VB6 days would have been System.Mousepointer = vbHourGlass),
and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).
Cheers.
Tippy.
|
by: Yeah |
last post by:
I have a multiple choice quiz where I would like to use CSS to change the
color of the answers upon clicking them. I would like to present the right
and wrong answers up front, rather than direct the user to a separate page
with all correct answers.
Do the answers have to be "links" for this to work? They have to be inactive
links, because they don't actually go anywhere. They only serve the purpose
of changing color whether they're...
|
by: Christian Blackburn |
last post by:
Hi Gang,
In VB6 is was relatively easy to change the pointer, but now I don't even
see that as a property for any objects. Can somebody tell me how to do that
in .NET?
Thanks in Advance,
Christian Blackburn
|
by: Just Me |
last post by:
Does Me.Cursor.Current=Cursors.WaitCursor
set the current property of Me.Cursor to Cursors.WaitCursor
And Me.Cursor.Current=Cursors.Default set the Me.Current
property to something (default) stored in Me.Cursor.
Or is Cursors.Default some process wide cursor shape?
What is a correct statement?
| |
by: Peter Oliphant |
last post by:
I've now asked how three times in this forum with no answers. So I went to
the 'windowsforms' newsgroup, and found this post, also unanswered, with the
same problem:
"Hello,
I've tried to find something on this in the newsgroups but came up with
nada:
I'm trying to create a custom cursor in VS2005. I have a .cur file
|
by: Jan Heppen |
last post by:
Is it posible to set something so that when my vb.net (visual studio 2005,
framework 2.0) application is busy that the mouse pointer change into a
hourglass ?
Or do i have to set everywhere where my application do something
Windows.Forms.Cursor.Current = Cursors.WaitCursor ??
something is for example calling the sql-server database to get/set data
please help me
|
by: =?Utf-8?B?Sm9hY2hpbQ==?= |
last post by:
Am I not supposed to be able to set the current cursor by assigning
Cursor.Current? this.Cursor in the main dialog works, but not Cursor.Current
other components. I am using a third party tool called SandDock to get Visual
Studio 2005 look and feel. Could that library cause it not to work?
|
by: Jassim Rahma |
last post by:
how can i change the cursor of the textbox to the block style?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |