473,408 Members | 2,813 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,408 software developers and data experts.

What event fires when data is typed into a field?

foo
Hello,

What event will fire when a user types data into a field and then the field
loses the focus but does not fire when a field is filled programatically? I
don't want the event to run when I'm initializing the field via code, but
the Change Event fires regardless of how the field was changed.

Thanks,

Bill Nicholson
Cincinnati, OH USA
Nov 20 '05 #1
9 1291
Cor
Hi Foo,

About what kind of field are you talking in a textbox, datagrid, combobox,
listview etc. etc?

Cor
What event will fire when a user types data into a field and then the field loses the focus but does not fire when a field is filled programatically? I don't want the event to run when I'm initializing the field via code, but
the Change Event fires regardless of how the field was changed.

Nov 20 '05 #2
foo
textbox
"Cor" <no*@non.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
Hi Foo,

About what kind of field are you talking in a textbox, datagrid, combobox, listview etc. etc?

Cor
What event will fire when a user types data into a field and then the field
loses the focus but does not fire when a field is filled programatically? I
don't want the event to run when I'm initializing the field via code,

but the Change Event fires regardless of how the field was changed.


Nov 20 '05 #3
Cor
Hi Foo,

Then there are a lot of events I like the most the keyup for typing

Than you have the leave for the second situation you said.

I hope this helps,

Cor
What event will fire when a user types data into a field and then the

field
loses the focus but does not fire when a field is filled programatically?
I
don't want the event to run when I'm initializing the field via code,

but the Change Event fires regardless of how the field was changed.

Nov 20 '05 #4
* "foo" <fo*@foo.com> scripsit:
textbox


'KeyPress', 'KeyDown', 'KeyUp', 'TextChanged'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
Cor
Hi Herfried,

I thought not textChanged, does that not fire when it happens
programmaticly?

Cor

'KeyPress', 'KeyDown', 'KeyUp', 'TextChanged'.

Nov 20 '05 #6
* "Cor" <no*@non.com> scripsit:
I thought not textChanged, does that not fire when it happens
programmaticly?


Why not try it yourself?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7
Cor
Hi Herfried,

This was the question from the OP
-------------
What event will fire when a user types data into a field and then the field
loses the focus but does not fire when a field is filled programatically? I
don't want the event to run when I'm initializing the field via code, but
the Change Event fires regardless of how the field was changed.
-------------
This the answer from Herfried

'TextChanged'.
--------------
On my question if that was right you gave this answer
Why not try it yourself?

--------------
In my opinion this is not an answer to someone who ask a question, but if it
is your style, do it. I have never threath you like this and I never will.

But I did try it and I expect an answer what was the result when you did try
this?

\\\
Private Sub TextBox1_TextChanged(ByVal _
sender As Object, ByVal e As System.EventArgs) Handles
TextBox1.TextChanged
Me.BackColor = Color.Red()
End Sub

Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Text = "To help Herfried a little bit"
End Sub

Private Sub TextBox1_KeyUp(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
Me.BackColor = Color.Blue
End Sub
///

Cor
Nov 20 '05 #8
* "Cor" <no*@non.com> scripsit:
In my opinion this is not an answer to someone who ask a question, but if it
is your style, do it. I have never threath you like this and I never will.


Sorry, my newsreader didn't show the OP's message, it seems to be too
old for my newsreader to be displayed... So I missed that the event
should not be fired when changing the textbox's content
programmatically.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
Cor
Accepted
:-)
In my opinion this is not an answer to someone who ask a question, but if it is your style, do it. I have never threath you like this and I never
will.
Sorry, my newsreader didn't show the OP's message, it seems to be too
old for my newsreader to be displayed... So I missed that the event
should not be fired when changing the textbox's content
programmatically.

Nov 20 '05 #10

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

Similar topics

12
by: Henning | last post by:
Hi grp! Trying to receive a udp msg in vb6, but it shows only zeros. What have I missed? /Henning -- Time is present only to prevent everything from happening at once. Still it seems that...
5
by: Maxine G | last post by:
I have two forms, a menu and a data entry form. The entry form is bound to a query against linked SQL server tables. In the deactivate event, I have some code which asks the user if they want to...
2
by: hypomite | last post by:
I have an handler for the SelectedIndexChanged event of a dropdown box. I have also set the AutoPostBack option to True. When you select any item besides the first one, the event sucessfully fires....
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
11
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
2
by: lindseyhansen | last post by:
Access 2000 with linked tables to SQL Server 2000: I have a form where I am trying to update a date field when any of the fields for the current saved record get changed. I am using the...
1
by: John Dalberg | last post by:
What causes a server event to fire when something happens on the client? Say a user changed the gridview's page index, the server side PageIndexChanged event is fires. What makes...
4
by: Boki | last post by:
Hi All, I have a timer, if my data queue Q has data, the timer should start work, if there is no data in Q, the timer should stop. However, there is an event can fire timer to start. Should I...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
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,...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.