Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm using vb.net and I want to know if the textbox changed event is being executed from the user changing it or by another function. Because I have functions in the program to clear the text box, and it may be executing from that other function. I cant figure out these parameter/arguments the .net help is too vauge - please help, thanks

 

 

Private Sub tbs_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tbSText.TextChanged

www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
  • *Experts*
Posted
You could try using the KeyPress event. You may have to handle special cases (for example, if I press the Enter key in a non-multiline textbox, KeyPress will still fire even if the text itself doesn't change) but it appears to be the only way to do it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...