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 15 12544
On 23 Aug 2006 18:30:48 -0700, si**********@gm ail.com wrote:
>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)
That behavior is now limited to one or two buttons on any given form.
Look at the form's properties "AcceptButt on" and "CancelButt on". If a button exists on a form it
can be assigned as the "AcceptButt on", and, likewise for a "CancelButt on".
Gene si**********@gm ail.com wrote:
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
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 wrote:
si**********@gm ail.com wrote:
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
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
Boy did I misread the your post... Sorry :)
--
Tom Shelton
"Tom Shelton" <to*@mtogden.co mwrote in message
news:11******** **************@ m79g2000cwm.goo glegroups.com.. .
> si**********@gm ail.com wrote:
>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
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
Actually, the functionality is still there in VB.NET, but it has been moved
to the form itself.
Now every form "has a" default button property, whereby a button object can
be assigned to this property of the form.
In the form's properties go to the AcceptButton and CancelButton and choose
the required button from the dropdown lists.
Cheers,
Greg
We are in the 21st century, 25 years after the first PC and people still
want a Keyboard enter instead of a pointing device click or whatever.
Amazing.
Are there still people out there using only a 16" floppy disk?
This is what I had to think about reading the OP's question.
And surely not out of the topic.
Cor
<si**********@g mail.comschreef in bericht
news:11******** *************@7 4g2000cwt.googl egroups.com...
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
Sometimes your application may require typing some text into a field. A
simple press of the Enter key would then run the application rather than
taking your hand off the keyboard and putting it on the mouse and then
clicking a button. The keyboard Enter and the Mouse pointing device will run
the same default button code so you can choose EITHER not 'one INSTEAD of
the other'.
Cheers.
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uH******** ******@TK2MSFTN GP04.phx.gbl...
We are in the 21st century, 25 years after the first PC and people still
want a Keyboard enter instead of a pointing device click or whatever.
Amazing.
Are there still people out there using only a 16" floppy disk?
This is what I had to think about reading the OP's question.
And surely not out of the topic.
Cor
<si**********@g mail.comschreef in bericht
news:11******** *************@7 4g2000cwt.googl egroups.com...
>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
Greg,
I thought that it was the default behaviour of a webbrowser, you don't mind
that I say that I don't like it
I am in the middle of a text, want to go to a new line or tab or whatever
but my text is send.
:-)
Cor
"Greg" <Gr**@no-reply.okschreef in bericht
news:ec******** **@mws-stat-syd.cdn.telstra .com.au...
Sometimes your application may require typing some text into a field. A
simple press of the Enter key would then run the application rather than
taking your hand off the keyboard and putting it on the mouse and then
clicking a button. The keyboard Enter and the Mouse pointing device will
run the same default button code so you can choose EITHER not 'one INSTEAD
of the other'.
Cheers.
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:uH******** ******@TK2MSFTN GP04.phx.gbl...
>We are in the 21st century, 25 years after the first PC and people still want a Keyboard enter instead of a pointing device click or whatever.
Amazing.
Are there still people out there using only a 16" floppy disk?
This is what I had to think about reading the OP's question. And surely not out of the topic.
Cor
<si**********@ gmail.comschree f in bericht news:11******* **************@ 74g2000cwt.goog legroups.com...
>>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
"Cor Ligthert [MVP]" <no************ @planet.nlschri eb:
We are in the 21st century, 25 years after the first PC and people still
want a Keyboard enter instead of a pointing device click or whatever.
Amazing.
Huh?! I believe I am not the only one who is using the keyboard extensively
to enter data and click buttons...
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
Huh?! I believe I am not the only one who is using the keyboard
extensively to enter data and click buttons...
--
What is it, to enter data or to automaticly click *one* buttons
:-)
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stefano |
last post by:
Hi all,
what is the correct use of the "default" attribute in XML Schema?
For example:
<xs:element name="myProperty" type="xs:string" default="myDefaultValue"/>
What can I do with it? What is the meaning of <
....default="myDefaultValue" /> ?
|
by: C# Learner |
last post by:
Is it possible to set a command button to the "default" button of the
form?
Here's an example of what I mean -- press Start -> Run. Notice that
the "OK" button has a dark rectangle around it, and when you press
ENTER, this "OK" button's Click event handler is eventually fired.
I was expecting Button to have a Default property, but can't seem to
find anything like it...
|
by: Hendrik Schober |
last post by:
Hi,
we just run into the problem, that "default" alignment
in the project properies dialog seem to be different.
We have a project that's a DLL, which is linked with
a couple of LIBs. All are with the same solution. All
had "Default" set in the "Struct Member Alignment"
entry.
After some assembler debugging we found out that a
struct member that is a member function pointer in
|
by: Paul Turley |
last post by:
Does anyone have some sample script to "press" a button or image button when
the user presses the Enter key? I see this behavior on a lot of web pages
but I'm not finding any samples.
Thx
--
Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician
paul@createsolutions.net
|
by: per9000 |
last post by:
Hi,
can I print some default text on the console when doing a ReadLine?
A silly example below shows two small scenarios. In the first a user
is told what he appears to be called, and asks for a name.
In the second case I want the the user to be able to just press return
to accept the username of the system. (I understand it does not work
the way I do it below - I just want to illustrate what I want).
| |
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |