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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Computer Crashing 8
Windows XP - 16 bit subsystem 2
Wifi Network Issue 0
Word VBA to update cross-referencing 0
System.ComponentModel.PropertyDescriptor ??? 1
MDI vs Tabbed 1
Usercontrol question 1
ComboBox events 1

Back
Top