Sep 8, 2002 #1 bashless Technical User May 3, 2002 35 US Hello; I am writing a visible log file to a multiline text box by appending to the string $ = $ + vbcrlf+ blahblah. How can I reposition the scroll to the bottom of the text box after I append another line? Any ideas? Thx.
Hello; I am writing a visible log file to a multiline text box by appending to the string $ = $ + vbcrlf+ blahblah. How can I reposition the scroll to the bottom of the text box after I append another line? Any ideas? Thx.
Sep 8, 2002 #2 JustinEzequiel Programmer Jul 30, 2001 1,192 PH the text box should have a SelStart property that you could set to the length of the Text property you may also want to consider adding data to your text box using the SelText property instead of appending data to the Text property Upvote 0 Downvote
the text box should have a SelStart property that you could set to the length of the Text property you may also want to consider adding data to your text box using the SelText property instead of appending data to the Text property
Sep 8, 2002 Thread starter #3 bashless Technical User May 3, 2002 35 US No, that did not scroll my text box so the last line is displayed. THanks though I am at least checking for overflow of the 32K string limit now. Any other ideas??? Upvote 0 Downvote
No, that did not scroll my text box so the last line is displayed. THanks though I am at least checking for overflow of the 32K string limit now. Any other ideas???
Sep 8, 2002 #4 vb5prgrmr Programmer Jul 5, 2002 3,617 US this is crude but works with testing it in formload (make sure that the textbox has the focus) SendKeys "^+{END}" (CTRL + END) Upvote 0 Downvote
this is crude but works with testing it in formload (make sure that the textbox has the focus) SendKeys "^+{END}" (CTRL + END)
Sep 8, 2002 #5 JustinEzequiel Programmer Jul 30, 2001 1,192 PH ' add to the .Text property here using whatever makes you happy ' then call this Text1.SelStart = Len(Text1.Text) ' then, optionally, call this if the above line does not work by itself Text1.Refresh Upvote 0 Downvote
' add to the .Text property here using whatever makes you happy ' then call this Text1.SelStart = Len(Text1.Text) ' then, optionally, call this if the above line does not work by itself Text1.Refresh