Button Properties

  • Thread starter Thread starter Darryn Ross
  • Start date Start date
D

Darryn Ross

Hi,

I was wondering if the "default" property of a button has been changed to
something else or if it has even been included in the .Net classes for C# as
it was in VB 6??

Regards

Darryn
 
It is my understanding that "default properties" are not included in the
..net framework.
 
* "Darryn Ross said:
I was wondering if the "default" property of a button has been changed to
something else or if it has even been included in the .Net classes for C# as
it was in VB 6??

Assign the button to the form's 'AcceptButton' property to make it the
default button.
 
Default properties are very much included in .NET
See the Default keyword in VB.NET and indexers in C#

/claes
 
claes,
You are correct. let me rephrase. To my understanding he was looking for
a default property of say a textbox or button. For instance I was thinking
that he was looking for something that VB 6 / VB Script (ASP) provides:

txtName = "my name"
or
txtName.Text = "my name"
 
Back
Top