I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default.
So I made all the reset statements into comments (placed an ' in front)
And everything works OK.
Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub do
that - or why is mine working?
Also, what is a static property. Is there only one value saved for the
entire application, for all Cursors, or what?
thanks for any clarifications 10 2071
to awnser the static property question. You might actually mean a staic
variable.
The static keyword meand that the variable will keep it's value when the sub
or function exits. This is used to declare at the sub level, and not at the
class level.
And yes for the cursor question. You have to set the cursor back to default
:).
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
news:OF****************@TK2MSFTNGP04.phx.gbl...
I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default.
So I made all the reset statements into comments (placed an ' in front)
And everything works OK.
Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub do
that - or why is mine working?
Also, what is a static property. Is there only one value saved for the
entire application, for all Cursors, or what?
thanks for any clarifications
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:5rpah.8374$gJ1.4362@trndny09...
to awnser the static property question. You might actually mean a staic
variable.
The static keyword meand that the variable will keep it's value when the
sub
or function exits. This is used to declare at the sub level, and not at
the
class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that
means!
>
And yes for the cursor question. You have to set the cursor back to
default
:).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply
>
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
news:OF****************@TK2MSFTNGP04.phx.gbl...
I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default.
So I made all the reset statements into comments (placed an ' in front)
And everything works OK.
Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub
do
that - or why is mine working?
Also, what is a static property. Is there only one value saved for the
entire application, for all Cursors, or what?
thanks for any clarifications
Static means just that. For example
Public Sub DoWork()
Static i as integer = 0
i += 1 'You can also use i = i + 1
End Sub
Now, when oyu run the method. It will add one to i, making it 1. When you
run the method again, it will again add 1 to i, making it 2.
See how it keeps the value after the method has executed. The static
variable stays in the memory.
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
ews:eK**************@TK2MSFTNGP03.phx.gbl...
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:5rpah.8374$gJ1.4362@trndny09...
to awnser the static property question. You might actually mean a staic
variable.
The static keyword meand that the variable will keep it's value when the
sub
or function exits. This is used to declare at the sub level, and not at
the
class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that
means!
>
And yes for the cursor question. You have to set the cursor back to
default
:).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply
>
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
news:OF****************@TK2MSFTNGP04.phx.gbl...
I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default.
So I made all the reset statements into comments (placed an ' in front)
And everything works OK.
Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub
do
that - or why is mine working?
Also, what is a static property. Is there only one value saved for the
entire application, for all Cursors, or what?
thanks for any clarifications
I see what the problem is. I'm asking what the static property means and
that can be taken two ways.
I understand the static property of a variable.
What I wanted to ask is what does
Static Property zzz....
mean
System.Windows.Forms.Cursor.Current
the property Current is Static
what does that mean?
Thanks
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:RVAah.8082$IW2.1403@trndny03...
Static means just that. For example
Public Sub DoWork()
Static i as integer = 0
i += 1 'You can also use i = i + 1
End Sub
Now, when oyu run the method. It will add one to i, making it 1. When you
run the method again, it will again add 1 to i, making it 2.
See how it keeps the value after the method has executed. The static
variable stays in the memory.
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
ews:eK**************@TK2MSFTNGP03.phx.gbl...
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:5rpah.8374$gJ1.4362@trndny09...
>to awnser the static property question. You might actually mean a staic variable.
The static keyword meand that the variable will keep it's value when the sub or function exits. This is used to declare at the sub level, and not at the class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that
means!
>> And yes for the cursor question. You have to set the cursor back to default :).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply
>> -- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message news:OF****************@TK2MSFTNGP04.phx.gbl... I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default. So I made all the reset statements into comments (placed an ' in front)
And everything works OK. Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub do that - or why is mine working? Also, what is a static property. Is there only one value saved for the entire application, for all Cursors, or what? thanks for any clarifications
It means you can change or access it anywhere in the program. It is help in
the memory at a global level.
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
news:eC**************@TK2MSFTNGP06.phx.gbl...
I see what the problem is. I'm asking what the static property means and
that can be taken two ways.
I understand the static property of a variable.
What I wanted to ask is what does
Static Property zzz....
mean
System.Windows.Forms.Cursor.Current
the property Current is Static
what does that mean?
Thanks
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:RVAah.8082$IW2.1403@trndny03...
Static means just that. For example
Public Sub DoWork()
Static i as integer = 0
i += 1 'You can also use i = i + 1
End Sub
Now, when oyu run the method. It will add one to i, making it 1. When you
run the method again, it will again add 1 to i, making it 2.
See how it keeps the value after the method has executed. The static
variable stays in the memory.
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
" Franky" <fr**********@a-znet.comwrote in message
ews:eK**************@TK2MSFTNGP03.phx.gbl...
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:5rpah.8374$gJ1.4362@trndny09...
>to awnser the static property question. You might actually mean a staic variable.
The static keyword meand that the variable will keep it's value when the sub or function exits. This is used to declare at the sub level, and not at the class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that
means!
>> And yes for the cursor question. You have to set the cursor back to default :).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply
>> -- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message news:OF****************@TK2MSFTNGP04.phx.gbl... I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default. So I made all the reset statements into comments (placed an ' in front)
And everything works OK. Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub do that - or why is mine working? Also, what is a static property. Is there only one value saved for the entire application, for all Cursors, or what? thanks for any clarifications
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:LlCah.10135$d42.2107@trndny07...
It means you can change or access it anywhere in the program. It is help
in
the memory at a global level.
In contrast to having to create an instance of the class first. It must
apply to all instances (I guess).
thanks
Franky,
Don't mix up the use of the old C++ keyword static what is used in C# as
well.
In VB.Net this is "Shared" the declared word can be used shared and exactly
as that means by all classes in your program. The static keyword is as
declared above it is static inside a method.
Cor
" Franky" <fr**********@a-znet.comschreef in bericht
news:eC**************@TK2MSFTNGP06.phx.gbl...
>I see what the problem is. I'm asking what the static property means and that can be taken two ways.
I understand the static property of a variable.
What I wanted to ask is what does
Static Property zzz....
mean
System.Windows.Forms.Cursor.Current
the property Current is Static
what does that mean?
Thanks
"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:RVAah.8082$IW2.1403@trndny03...
>Static means just that. For example
Public Sub DoWork() Static i as integer = 0 i += 1 'You can also use i = i + 1 End Sub
Now, when oyu run the method. It will add one to i, making it 1. When you run the method again, it will again add 1 to i, making it 2.
See how it keeps the value after the method has executed. The static variable stays in the memory.
-- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message ews:eK**************@TK2MSFTNGP03.phx.gbl...
"Ryan S. Thiele" <ma*****@verizon.netwrote in message news:5rpah.8374$gJ1.4362@trndny09...
>>to awnser the static property question. You might actually mean a staic variable.
The static keyword meand that the variable will keep it's value when the sub or function exits. This is used to declare at the sub level, and not at the class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that means!
>>> And yes for the cursor question. You have to set the cursor back to default :).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply
>>> -- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message news:OF****************@TK2MSFTNGP04.phx.gbl.. . I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default. So I made all the reset statements into comments (placed an ' in front)
And everything works OK. Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub do that - or why is mine working? Also, what is a static property. Is there only one value saved for the entire application, for all Cursors, or what? thanks for any clarifications
Thanks Cor
Didn't you mean
as that means by all objects in your program
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:Oc**************@TK2MSFTNGP02.phx.gbl...
Franky,
Don't mix up the use of the old C++ keyword static what is used in C# as
well.
In VB.Net this is "Shared" the declared word can be used shared and
exactly as that means by all classes in your program. The static keyword
is as declared above it is static inside a method.
Cor
" Franky" <fr**********@a-znet.comschreef in bericht
news:eC**************@TK2MSFTNGP06.phx.gbl...
>>I see what the problem is. I'm asking what the static property means and that can be taken two ways. I understand the static property of a variable.
What I wanted to ask is what does
Static Property zzz....
mean
System.Windows.Forms.Cursor.Current
the property Current is Static
what does that mean? Thanks
"Ryan S. Thiele" <ma*****@verizon.netwrote in message news:RVAah.8082$IW2.1403@trndny03...
>>Static means just that. For example
Public Sub DoWork() Static i as integer = 0 i += 1 'You can also use i = i + 1 End Sub
Now, when oyu run the method. It will add one to i, making it 1. When you run the method again, it will again add 1 to i, making it 2.
See how it keeps the value after the method has executed. The static variable stays in the memory.
-- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message ews:eK**************@TK2MSFTNGP03.phx.gbl...
"Ryan S. Thiele" <ma*****@verizon.netwrote in message news:5rpah.8374$gJ1.4362@trndny09... to awnser the static property question. You might actually mean a staic variable.
The static keyword meand that the variable will keep it's value when the sub or function exits. This is used to declare at the sub level, and not at the class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that means!
And yes for the cursor question. You have to set the cursor back to default :).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply -- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message news:OF****************@TK2MSFTNGP04.phx.gbl. .. I think I misread a post and understood that if I do:
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
there is no need to reset the cursor to Default. So I made all the reset statements into comments (placed an ' in front)
And everything works OK. Now I'm wondering why.
Is it true that I do not need to reset the cursor or does leaving the sub do that - or why is mine working? Also, what is a static property. Is there only one value saved for the entire application, for all Cursors, or what? thanks for any clarifications
Exactly I took the popular tongue.
Although it is as well for all "shared classes" and modules (which are in
fact the same).
:-)
Cor
" Franky" <fr**********@a-znet.comschreef in bericht
news:eh**************@TK2MSFTNGP06.phx.gbl...
Thanks Cor
Didn't you mean
>as that means by all objects in your program
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:Oc**************@TK2MSFTNGP02.phx.gbl...
>Franky,
Don't mix up the use of the old C++ keyword static what is used in C# as well.
In VB.Net this is "Shared" the declared word can be used shared and exactly as that means by all classes in your program. The static keyword is as declared above it is static inside a method.
Cor
" Franky" <fr**********@a-znet.comschreef in bericht news:eC**************@TK2MSFTNGP06.phx.gbl...
>>>I see what the problem is. I'm asking what the static property means and that can be taken two ways. I understand the static property of a variable.
What I wanted to ask is what does
Static Property zzz....
mean
System.Windows.Forms.Cursor.Current
the property Current is Static
what does that mean? Thanks
"Ryan S. Thiele" <ma*****@verizon.netwrote in message news:RVAah.8082$IW2.1403@trndny03... Static means just that. For example
Public Sub DoWork() Static i as integer = 0 i += 1 'You can also use i = i + 1 End Sub
Now, when oyu run the method. It will add one to i, making it 1. When you run the method again, it will again add 1 to i, making it 2.
See how it keeps the value after the method has executed. The static variable stays in the memory.
-- Thiele Enterprises - The Power Is In Your Hands Now!
-- " Franky" <fr**********@a-znet.comwrote in message ews:eK**************@TK2MSFTNGP03.phx.gbl...
"Ryan S. Thiele" <ma*****@verizon.netwrote in message news:5rpah.8374$gJ1.4362@trndny09... to awnser the static property question. You might actually mean a staic variable. > The static keyword meand that the variable will keep it's value when the sub or function exits. This is used to declare at the sub level, and not at the class level.
System.Windows.Forms.Cursor.Current is a Static property - whatever that means!
> And yes for the cursor question. You have to set the cursor back to default :).
But I don't - in many places - and it works OK - I wonder why
Thanks for the reply
> -- Thiele Enterprises - The Power Is In Your Hands Now! > -- " Franky" <fr**********@a-znet.comwrote in message news:OF****************@TK2MSFTNGP04.phx.gbl.. . I think I misread a post and understood that if I do: > System.Windows.Forms.Cursor.Current = Cursors.WaitCursor > there is no need to reset the cursor to Default. > > > So I made all the reset statements into comments (placed an ' in front) > And everything works OK. > > > Now I'm wondering why. > Is it true that I do not need to reset the cursor or does leaving the sub do that - or why is mine working? > > > Also, what is a static property. Is there only one value saved for the entire application, for all Cursors, or what? > > > thanks for any clarifications > > > > > > > > >
I think we took care of that.
Now if I can find some doc on MSScriptControl.ScriptControlClass I'd feel
like I'm moving on.
THANKS
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
Exactly I took the popular tongue.
Although it is as well for all "shared classes" and modules (which are in
fact the same).
:-)
Cor
" Franky" <fr**********@a-znet.comschreef in bericht
news:eh**************@TK2MSFTNGP06.phx.gbl...
>Thanks Cor
Didn't you mean
>>as that means by all objects in your program
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message news:Oc**************@TK2MSFTNGP02.phx.gbl...
>>Franky,
Don't mix up the use of the old C++ keyword static what is used in C# as well.
In VB.Net this is "Shared" the declared word can be used shared and exactly as that means by all classes in your program. The static keyword is as declared above it is static inside a method.
Cor
" Franky" <fr**********@a-znet.comschreef in bericht news:eC**************@TK2MSFTNGP06.phx.gbl... I see what the problem is. I'm asking what the static property means and that can be taken two ways. I understand the static property of a variable.
What I wanted to ask is what does
Static Property zzz....
mean
System.Windows.Forms.Cursor.Current
the property Current is Static
what does that mean? Thanks
"Ryan S. Thiele" <ma*****@verizon.netwrote in message news:RVAah.8082$IW2.1403@trndny03... Static means just that. For example > Public Sub DoWork() Static i as integer = 0 i += 1 'You can also use i = i + 1 End Sub > Now, when oyu run the method. It will add one to i, making it 1. When you run the method again, it will again add 1 to i, making it 2. > See how it keeps the value after the method has executed. The static variable stays in the memory. > -- Thiele Enterprises - The Power Is In Your Hands Now! > -- " Franky" <fr**********@a-znet.comwrote in message ews:eK**************@TK2MSFTNGP03.phx.gbl... > > "Ryan S. Thiele" <ma*****@verizon.netwrote in message news:5rpah.8374$gJ1.4362@trndny09... >to awnser the static property question. You might actually mean a >staic >variable. >> >The static keyword meand that the variable will keep it's value when >the >sub >or function exits. This is used to declare at the sub level, and not >at >the >class level. > System.Windows.Forms.Cursor.Current is a Static property - whatever that means! > >> >And yes for the cursor question. You have to set the cursor back to >default >:). > But I don't - in many places - and it works OK - I wonder why > > Thanks for the reply > > >> >-- >Thiele Enterprises - The Power Is In Your Hands Now! >> >-- >" Franky" <fr**********@a-znet.comwrote in message >news:OF****************@TK2MSFTNGP04.phx.gbl. .. >I think I misread a post and understood that if I do: >> >System.Windows.Forms.Cursor.Current = Cursors.WaitCursor >> >there is no need to reset the cursor to Default. >> >> >> >So I made all the reset statements into comments (placed an ' in >front) >> >And everything works OK. >> >> >> >Now I'm wondering why. >> >Is it true that I do not need to reset the cursor or does leaving the >sub >do >that - or why is mine working? >> >> >> >Also, what is a static property. Is there only one value saved for >the >entire application, for all Cursors, or what? >> >> >> >thanks for any clarifications >> >> >> >> >> >> >> >> >> > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chris Michael |
last post by:
I am using the following class in a CSS document:
..loginsubmit
{ background-color: #ffffff; FONT-WEIGHT: bold; color: #002980; cursor:
hand }
It works perfectly well, but it won't validate...
|
by: Steven T. Hatton |
last post by:
Now that I have a better grasp of the scope and capabilities of the C++
Standard Library, I understand that products such as Qt actually provide
much of the same functionality through their own...
|
by: Riccardo Giomi |
last post by:
Hi
I would to display a Cursors.WaitCursor on a ListView control, so I tried
listView.Cursor = Cursors.WaitCursor
but it doesn't work at all, I see always the default cursor. The same thing...
|
by: Neil Kiser |
last post by:
I'm trying to understand what defining a class as 'static' does for
me.
Here's an example, because maybe I am thinking about this all wrong:
My app will allows the user to control the fonts...
|
by: Rajat Tandon |
last post by:
Hello there,
I am relatively new to the newsgroups and C#. I have never been disappointed
with the groups and always got the prompt replies to my queries.This is yet
another strange issue, I am...
|
by: superseed |
last post by:
Hi,
I'm pretty new to C#, and I'm quite stuck on the following problem.
I would like to add to my application a Windows.Form (singleton) on
which I could display a message of one of the...
|
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)...
|
by: Xah Lee |
last post by:
in March, i posted a essay “What is Expressiveness in a Computer
Language”, archived at:
http://xahlee.org/perl-python/what_is_expresiveness.html
I was informed then that there is a academic...
|
by: Martijn Mulder |
last post by:
I load my custom cursor with the constructor call
System.Windows.Forms.Cursor mycursor=new
System.Windows.Forms(GetType(),"MyCursor.Cur");
and the appropriate command line
csc...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |