OCX textbox

Hi everyone,

i'm using an ocx textbox and i want to know when someone presses the return button when he's typing text.

i already used keyfunction(lastkey), but that doesn't work because it's a ocx. It works when I use a fill-in, but i need multi-line, that's why I'm using an OCX

So does someone knows the solution for my problem to get the lastkey in an ocx...

thanks in advance
 
Is there a way to get the value of, for example, the second line out of an editor?

for example, text in editor:

hello
test

and i only want to get the second line ( = "test" ) in a message box...
 

doreynie

Member
Hi Kenny,

Maybe you can count the number of 'newlines' in the screen-value of the editor (chr(13)). The n-th line is the line you need...
 
Top