Home All Groups Group Topic Archive Search About

what is a static property and a cursor question

Author
26 Nov 2006 7:11 PM
Franky
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

Author
26 Nov 2006 11:29 PM
Ryan S. Thiele
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" <frankyNOSPAM@a-znet.com> wrote in message
news:OFBj%236YEHHA.4680@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
Author
27 Nov 2006 12:00 AM
Franky
"Ryan S. Thiele" <mali***@verizon.net> wrote 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


Show quoteHide quote
>
> --
> Thiele Enterprises - The Power Is In Your Hands Now!
>
> --
> " Franky" <frankyNOSPAM@a-znet.com> wrote in message
> news:OFBj%236YEHHA.4680@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
>
>
>
>
>
>
>
>
>
Author
27 Nov 2006 12:32 PM
Ryan S. Thiele
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" <frankyNOSPAM@a-znet.com> wrote in message
ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...


"Ryan S. Thiele" <mali***@verizon.net> wrote 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


Show quoteHide quote
>
> --
> Thiele Enterprises - The Power Is In Your Hands Now!
>
> --
> " Franky" <frankyNOSPAM@a-znet.com> wrote in message
> news:OFBj%236YEHHA.4680@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
>
>
>
>
>
>
>
>
>
Author
27 Nov 2006 2:04 PM
Franky
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" <mali***@verizon.net> wrote in message
news:RVAah.8082$IW2.1403@trndny03...
Show quoteHide quote
> 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" <frankyNOSPAM@a-znet.com> wrote in message
> ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...
>
>
> "Ryan S. Thiele" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>> news:OFBj%236YEHHA.4680@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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
Author
27 Nov 2006 2:10 PM
Ryan S. Thiele
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" <frankyNOSPAM@a-znet.com> wrote in message
news:eC176ziEHHA.3768@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" <mali***@verizon.net> wrote in message
news:RVAah.8082$IW2.1403@trndny03...
Show quoteHide quote
> 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" <frankyNOSPAM@a-znet.com> wrote in message
> ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...
>
>
> "Ryan S. Thiele" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>> news:OFBj%236YEHHA.4680@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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
Author
27 Nov 2006 7:21 PM
Franky
"Ryan S. Thiele" <mali***@verizon.net> wrote 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
Author
28 Nov 2006 5:46 PM
Cor Ligthert [MVP]
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

Show quoteHide quote
" Franky" <frankyNOSPAM@a-znet.com> schreef in bericht
news:eC176ziEHHA.3768@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" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>> ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...
>>
>>
>> "Ryan S. Thiele" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>> news:OFBj%236YEHHA.4680@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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
Author
29 Nov 2006 2:06 AM
Franky
Thanks Cor

Didn't you mean

Show quoteHide quote
> as that means by all objects in your program

"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:Oc6IqTxEHHA.4120@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" <frankyNOSPAM@a-znet.com> schreef in bericht
> news:eC176ziEHHA.3768@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" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>> ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...
>>>
>>>
>>> "Ryan S. Thiele" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>>> news:OFBj%236YEHHA.4680@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
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
Author
29 Nov 2006 4:27 AM
Cor Ligthert [MVP]
Exactly I took the popular tongue.

Although it is as well for all "shared classes" and modules (which are in
fact the same).

:-)

Cor

Show quoteHide quote
" Franky" <frankyNOSPAM@a-znet.com> schreef in bericht
news:ehRE6r1EHHA.4404@TK2MSFTNGP06.phx.gbl...
> Thanks Cor
>
> Didn't you mean
>
>> as that means by all objects in your program
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:Oc6IqTxEHHA.4120@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" <frankyNOSPAM@a-znet.com> schreef in bericht
>> news:eC176ziEHHA.3768@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" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>>> ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...
>>>>
>>>>
>>>> "Ryan S. Thiele" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>>>> news:OFBj%236YEHHA.4680@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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
29 Nov 2006 4:22 PM
Franky
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



Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:uW0id52EHHA.4208@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" <frankyNOSPAM@a-znet.com> schreef in bericht
> news:ehRE6r1EHHA.4404@TK2MSFTNGP06.phx.gbl...
>> Thanks Cor
>>
>> Didn't you mean
>>
>>> as that means by all objects in your program
>>
>> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
>> news:Oc6IqTxEHHA.4120@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" <frankyNOSPAM@a-znet.com> schreef in bericht
>>> news:eC176ziEHHA.3768@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" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>>>> ews:eKu$BcbEHHA.4***@TK2MSFTNGP03.phx.gbl...
>>>>>
>>>>>
>>>>> "Ryan S. Thiele" <mali***@verizon.net> wrote 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" <frankyNOSPAM@a-znet.com> wrote in message
>>>>>> news:OFBj%236YEHHA.4680@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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>