473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A simple TEXTBOX question

I want to execute a piece of code on textbox1.text WHEN the user (cursor)
exit that box (using the TAB or ENTER key). Not at every keyboard entry on
that box like I am getting right now with:

Private Sub TextBox1_TextChanged...

I dont see nothing into properties to achieve that.

Thank you very much again
--
Marcel Saucier
Mississauga, Ontario, Canada
Super Basic programmer under DOS since 1983. Absolutely dummy (& new) VB.NET
programmer under Windows since september 2005. It's about time to upgrade ?
Nov 21 '05 #1
5 950

"Marcel Saucier" <Ma***********@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
I want to execute a piece of code on textbox1.text WHEN the user (cursor)
exit that box (using the TAB or ENTER key). Not at every keyboard entry on
that box like I am getting right now with:

Private Sub TextBox1_TextChanged...

I dont see nothing into properties to achieve that.

Thank you very much again
--
Marcel Saucier
Mississauga, Ontario, Canada
Super Basic programmer under DOS since 1983. Absolutely dummy (& new)
VB.NET
programmer under Windows since september 2005. It's about time to upgrade
?


You're using the default event for a TextBox object, TextChanged, which is
behaving exactly as intended. Try placing your code in an event procedure
for the Leave or LostFocus event if you want to react when the user is
finished entering data into the TextBox object.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 21 '05 #2
Move your code to LostFocus event of the text box. TextChanged, as intended,
will fire for every change.

"Marcel Saucier" <Ma***********@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
I want to execute a piece of code on textbox1.text WHEN the user (cursor)
exit that box (using the TAB or ENTER key). Not at every keyboard entry on
that box like I am getting right now with:

Private Sub TextBox1_TextChanged...

I dont see nothing into properties to achieve that.

Thank you very much again
--
Marcel Saucier
Mississauga, Ontario, Canada
Super Basic programmer under DOS since 1983. Absolutely dummy (& new) VB.NET
programmer under Windows since september 2005. It's about time to upgrade ?
Nov 21 '05 #3
Hi Peter & Siva,

It does work ! I just realized the lot of choice that I have, on the Studio
menu, for a particular objet...

My God, I still have a long way to go !

--
Super Basic programmer under DOS since 1983. Absolutely dummy (& new) VB.NET
programmer under Windows since september 2005 ! Most of you will agree to say
that it was about time to... upgrade !

Nov 21 '05 #4
It is working !
--
Super Basic programmer under DOS since 1983. Absolutely dummy (& new) VB.NET
programmer under Windows since september 2005 ! Most of you will agree to say
that it was about time to... upgrade !
Nov 21 '05 #5
It is working ! I realized all the choices of actions from the Studio menu...
--
Super Basic programmer under DOS since 1983. Absolutely dummy (& new) VB.NET
programmer under Windows since september 2005 ! Most of you will agree to say
that it was about time to... upgrade !
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1404
by: Oli | last post by:
Hi Folks, Alright, I have a textbox called "A" and the value in that textbox is "B". When the user presses submit I want A : B to appear on the page. How do I do it? I appreciate that this...
3
2642
by: War Eagle | last post by:
I've been looking at .substring and .trim methods and I still have a question about extracting substrings from a textbox. Basically the textbox contains the full path to a file ... for example ...
8
1861
by: pagates | last post by:
Hello, I am playing a little with Encoding, and I have what is possibly (forgive me) a newbie-type question. I have a function that takes a string and a codepage (based upon the basic MSDN...
2
8374
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
0
1871
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
4
1475
by: ItNerd | last post by:
Someone PLEASE HELP ME!!!!! All I want to do is a simple postback and grab the value from a textbox on clicking a linkbutton like below, but the value is not writing to the screen. I am...
0
1637
by: Joe | last post by:
Hi, I have a simple form that does nothing but emails the whatever user entered in the form fields. The form is working fine and email sent. The problem I am having is in te string that forms...
9
1280
by: Nad | last post by:
Hello, I have a textbox control with EnableViewState=false I also have a datalist within a Panel in the same form with EnableViewState=false The datalist is filled using an SqlDataAdaptor. ...
2
2273
by: Eniac | last post by:
*argh* ... *pull hairs* I've recently started developing from ASP to ASP.NET The switch was fairly smooth since i had done some VB.net before ... then came...FORMS! :) I find it astounding...
1
1121
by: Phillip Vong | last post by:
I have a simple Formview and in the InsertMode I have a calendar and a textbox. All I want is for people to click on a date and the date is populated to the textbox. Here is my simple code and my...
0
7328
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...
1
6991
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...
0
5578
agi2029
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,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.