“默认”在哪里? VB.net中Command Button对象的属性 [英] Where is the "default" property of the Command Button Object in VB.net

查看:98
本文介绍了“默认”在哪里? VB.net中Command Button对象的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我是西班牙的vb.net初学者。当我使用VB6时,按钮

对象有一个名为default的属性。可以设置此按钮,如

按ENTER键键。但是在VB.net中我找不到这个属性。

是什么时候?或者mabye改变了另一件事,不是吗?谢谢!西蒙

Hello all! I am a vb.net beginner in Spain. When I use VB6 ,the button
object has a property called "default" that can set this button like
press "ENTER" key. But in the VB.net I can''t find this property. Where
is it? Or mabye change the other thing,No?Thanks ! Simon

推荐答案

2006年8月23日18:30:48 -0700, si ********** @ gmail.com 写道:
On 23 Aug 2006 18:30:48 -0700, si**********@gmail.com wrote:

> ;大家好!我是西班牙的vb.net初学者。当我使用VB6时,按钮
对象有一个名为default的属性。可以设置此按钮,如
按ENTER键。键。但是在VB.net中我找不到这个属性。
是什么?或者mabye改变了另一件事,不是吗?谢谢! Simon
>Hello all! I am a vb.net beginner in Spain. When I use VB6 ,the button
object has a property called "default" that can set this button like
press "ENTER" key. But in the VB.net I can''t find this property. Where
is it? Or mabye change the other thing,No?Thanks ! Simon



(VB2005)


这种行为现在仅限于任何给定表格上的一个或两个按钮。


查看表单的'属性',AcceptButton"和CancelButton。如果表单上存在按钮,则可以将其指定为AcceptButton,同样也可以指定为CancelButton。


Gene

(VB2005)

That behavior is now limited to one or two buttons on any given form.

Look at the form''s properties "AcceptButton" and "CancelButton". If a button exists on a form it
can be assigned as the "AcceptButton", and, likewise for a "CancelButton".

Gene



si *** *******@gmail.com 写道:

大家好!我是西班牙的vb.net初学者。当我使用VB6时,按钮

对象有一个名为default的属性。可以设置此按钮,如

按ENTER键键。但是在VB.net中我找不到这个属性。

是什么时候?或者mabye改变了另一件事,不是吗?谢谢! Simon
Hello all! I am a vb.net beginner in Spain. When I use VB6 ,the button
object has a property called "default" that can set this button like
press "ENTER" key. But in the VB.net I can''t find this property. Where
is it? Or mabye change the other thing,No?Thanks ! Simon



在大多数情况下,默认的概念是属性已经消失。

在VB.NET中,只有索引属性可以使用

属性标记为默认属性。其中,恕我直言,是一件非常好的事情。我一直是那些认为使用默认属性是邪恶的wackos之一....

你可以使用default关键字标记声明一个默认属性。 />

-

Tom Shelton

For the most part, the concept of a "default" property has gone away.
In VB.NET, only an indexed property can be marked as default using an
attribute. Which, IMHO, is a very good thing. I always was one of
those wackos that thought the use of default properties were evil....
You can mark declare a default property using the default keyword.

--
Tom Shelton




Tom谢尔顿写道:

Tom Shelton wrote:
si ********** @ gmail.com 写道:

大家好!我是西班牙的vb.net初学者。当我使用VB6时,按钮

对象有一个名为default的属性。可以设置此按钮,如

按ENTER键键。但是在VB.net中我找不到这个属性。

是什么时候?或者mabye改变了另一件事,不是吗?谢谢! Simon
Hello all! I am a vb.net beginner in Spain. When I use VB6 ,the button
object has a property called "default" that can set this button like
press "ENTER" key. But in the VB.net I can''t find this property. Where
is it? Or mabye change the other thing,No?Thanks ! Simon



在大多数情况下,默认的概念是属性已经消失。

在VB.NET中,只有索引属性可以使用

属性标记为默认属性。其中,恕我直言,是一件非常好的事情。我一直是那些认为使用默认属性是邪恶的wackos之一......


您可以使用默认值标记声明默认属性关键字。


-

Tom Shelton


For the most part, the concept of a "default" property has gone away.
In VB.NET, only an indexed property can be marked as default using an
attribute. Which, IMHO, is a very good thing. I always was one of
those wackos that thought the use of default properties were evil....
You can mark declare a default property using the default keyword.

--
Tom Shelton



男孩我误读了你的帖子。 ..对不起:)


-

Tom Shelton

Boy did I misread the your post... Sorry :)

--
Tom Shelton


这篇关于“默认”在哪里? VB.net中Command Button对象的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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