Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiline textboxes

Status
Not open for further replies.

mytaurus2000

Technical User
Oct 4, 2006
138
US
I am trying to write code for when a user begins entering text in a multiline textbox and the textbox loses focus a message bos will prompt the user asking if they want to save or discard the text they recently entered.

I thought there was an event KeyPress and Leave, but when I code the IntelliSense doesn't suggest either.

Are there separate events for a textbox and multiline textbox? Why aren't the above events an option?
 
I don't know what to tell you man, I just made a textbox. Set it's Multiline property to true and I have both Keypress and Leave events.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Here is my code

Dim objRAMTAResults As New RAMTAResults

bjRAMTAResults.txtTAResults. (There is no Leave or Keypress events in Intellisense)

RAMTAResults is a class, when I am in the class view and I select txtTAResults from the Class Name Drop-Down List, Keypress and Leave or acceptable methods. But when I am in the ADD form, I can't access these methods.

I am new to VB.net so I apologize if this is a stupid question, but trying to clear things up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top