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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find code for trapping line break

Status
Not open for further replies.

graabein

Programmer
Oct 9, 2002
186
NO
Hello everyone!

I have the strangest problem. In my main form I somehow trap linebreaks in textboxes with MultiLine = True. Problem is I don't know where this code is! It's a pretty old application...

On a new form I added (a dialog box) this input filter trap key magic is non existing.

How do I go about locating the code that filters vbCrLf/Chr(10)+Chr(13) or whatever???!! I'm in a rut and I want out!

[elephant2]
graabein
 
I think I might have used subclassing on the user control or maybe used a picture or a button to get the enter key event.

I tried adding a multiline textbox on the main form and that worked as intended with enter key. In the user control however the enter key does not work on the multiline textboxes, it don't even run to a break point on the keypress event (only thing I have code for on the textboxes in question).

Please help me figure this out.

[elephant2]
graabein
 
Yes! I finally found the source of my problems, namely the DefaultCancel property on the user control. That's seven or eights hours I'll never see again.

[elephant2]
graabein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top