什么是静态属性和游标问题 [英] what is a static property and a cursor question

查看:44
本文介绍了什么是静态属性和游标问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我误读了一篇文章,并明白如果我这样做:


System.Windows.Forms.Cursor.Current = Cursors.WaitCursor


没有必要将光标重置为默认值。


所以我把所有重置语句都写成了注释(放在前面的'')

>
一切正常。


现在我想知道为什么。


我是否真的不需要重置光标或者确实离开子程序

那个 - 或者为什么我的工作?


另外,什么是静态属性。对于所有游标,

整个应用程序是否只保存了一个值,或者是什么?


感谢您的任何澄清


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


推荐答案

来破坏静态属性问题。你可能实际上意味着一个staic

变量。


静态关键字meand变量将保持它的价值当子

或函数退出。这用于在子级别声明,而不是在

级别声明。


光标问题是的。你必须将光标设置回默认值

:)。


-

Thiele Enterprises - 权力在你的身上现在动手!


-

"永邦" < fr ********** @ a-znet.comwrote in message

news:OF **************** @ TK2MSFTNGP04 .phx.gbl ...

我想我误读了一篇文章并了解如果我这样做:


System.Windows.Forms.Cursor.Current = Cursors.WaitCursor


没有必要将光标重置为默认值。


所以我把所有的重置语句都写成了注释(放置了一个''在前面)


一切正常。


现在我想知道为什么。


我是不是真的需要重置光标或者确实离开了子网

那个 - 或者为什么我的工作?


另外,什么是静态属性。对于所有游标,

整个应用程序是否只保存了一个值,或者是什么?


感谢您的任何澄清



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


"Ryan S. Thiele" <ma*****@verizon.netwrote in message
news:5rpah.8374


gJ1.4362@trndny09 ...
gJ1.4362@trndny09...

以获取静态属性问题。你可能实际上意味着一个staic

变量。


静态关键字meand表示当
$ b时变量将保持其值$ b sub

或函数退出。这用于在子级别声明,而不是在

级别声明。
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是一个静态属性 - 无论

是什么意思!

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 - 权力掌握在你手中!


-

"永邦" < fr ********** @ a-znet.comwrote in message

news:OF **************** @ TK2MSFTNGP04 .phx.gbl ...

我想我误读了一篇文章并了解如果我这样做:


System.Windows.Forms.Cursor.Current = Cursors.WaitCursor


没有必要将光标重置为默认值。


所以我把所有的重置语句都写成了注释(放置了一个''在前面)


一切正常。


现在我想知道为什么。


我是否真的不需要重置光标或者确实离开了这个或者b $ b $

那个 - 或者为什么我的工作?


另外,什么是静态属性。对于所有游标,

整个应用程序是否只保存了一个值,或者是什么?


感谢您的任何澄清


>
--
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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆