Hi,
The textbox has a lines property I would use that instead of sendmessage
For counter as integer = 1 to 50
textbox1.text &= "line number " & counter.tostring & controlchars.crlf
next
Dim strLines() as string = textbox1.lines
trace.writeline(string.format("Textbox lines {0}", strlines.getubound(0)))
For each sLine as string in strlines
trace.writeline(sline)
trace.writeline(string.format("Line length = {0}", sline.length))
next
Ken
--------------------
"Steve" wrote:
Hi all,
Could someone provide a link to working code examples for implementing these
Sendmessage API calls in VB.NET ??
EM_GETLINECOUNT
EM_GETLINE
EM_LINELENGTH
EM_LINEINDEX
I want to use these to get info from a multiline textbox. I can only find
VB6 examples on the net.
thanks in advance
Steve