473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

enter to trigger event

i am trying to allow a user to press enter in a text box to trigger a text change of an object...

1. say u put 2 in a text box called "Number" and
2. when you press enter,
3. another object named and shaped as a book to change it's text, that u can see on the picture to "write"..
4. originally the book will have the text "Start" on it

do i changed the "number text box" enter event ?

Expand|Select|Wrap|Line Numbers
  1. Private Sub xNumberTextBox_Enter(ByVal sender As Object,
  2.  ByVal e As System.EventArgs) Handles xNumberTextBox.Enter
  3.  
  4.    Me.NumbertextBox.AcceptsReturn = True
  5. end sub
is what i have so far.....
Mar 29 '09 #1
2 1885
tlhintoq
3,525 Expert 2GB
do i changed the "number text box" enter event
No. That is the event that fires when you enter the textbox, not when you press the 'enter' key.

You want to handle the KeyPress event of the originating text box.
Mar 29 '09 #2
thanks for the reply, helped alot...i got it to work.
Mar 29 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Matt | last post by:
<input type="button" onClick="doSomething()"> When the user click HTML button, it will launch doSomething(). But I want the user enter ENTER key, it will have same effect. Please advise....
3
by: Simon Wigzell | last post by:
How can I interrupt the enter key so it won't trigger unwanted events on my web page? I have tried this: var defaultEventHandler = obj.getEvent("onkeydown"); var myEventHandler =...
1
by: Kimochi | last post by:
Hi, i want to ask view questions 1.when i press Enter button on the textbox how do i trigger an event? 2.How do i use shortcut key for example ctrl+s to call certain function.
5
by: PD | last post by:
The TextChanged event is not being called when I hit the "Enter" key. Yet it does for the "Tab" key. I set a break point in the Page_Load event and the TextChanged event and none of these get...
6
by: Andrew Willett | last post by:
I have a web form that is a child of a Master Page. It is a login form for forms authentication. When you fill in the username and password box and press ENTER it doesnt process any of the...
5
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
3
by: Jake Barnes | last post by:
I'm researching the Enter key. This is for an Ajax chat application. The designer tells me that she wants people to be able to submit text simply by hitting the Enter key. She wants this to happen...
1
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the...
6
by: Mark B | last post by:
I have a function that looks up a SQL table to see if a search term matches. It works fine but so far there are two things yet to work: 1) After entering a search term and pressing Enter, nothing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.