DrJavaJoe
That works but it does the same thing as txtbox.SelStart=Len(txtbox), still scrolls up and than back down.
i am beginning to think there is no way to eliminate the screen flikering, its horrible and im running out of ideas.
thanks for the help.
DrJavaJoe using ur code stuff gets added to the window, the scrollbar still goes to the 1st line but then comes up to the last place it was not to all the way down to the bottom. so it is the same as using selstart but it doenst scroll all the way down, which is not what i need.(i have to go...
thanks for the replys
ok perhaps i dindnt explain in detail enough what i am doing. i need a multline txtbox because i got a two way terminal basically and i need the user to be able to scroll back to whatever point they want at any time. now when stuff comes in it gets added to the bottom of...
is it possible to stop a text box from auto scrolling up when something is added to it?
what i do is txtbox = txtbox + newtext and it scrolls up, and then i have to scroll it back down with txtbox.SelStart=Len(txtbox). considering that i am logging data from the serial port into this text box...
is there any way to make the scrollbar automatically go to the bottom most position, other than something like txtBox.SelStart = Len(txtBox) every time i add new data? TIA
lionelhill: well i am expecting a message which is more or less a fixed format. basically every minute i get a header msg and then around 30 lines of output. Each line had an end of line character (however sometimes it is CR + LF and sometimes LF + CR, which i can do nothing about, but i have to...
yes i am trying to add the current line i got from the port into the textbox (i am keeping a log of data from the parallel port) i will try that thanks (howver as i said the prog does work for maybe 24 hours before it unexpectedly get that error) so i am thinking maybe it is from a message it...
hi, this function gives an "overflow" error 6 at random times, and i have no idea why!! plz give me some ideas
Private Sub MSComm1_OnComm()
If FlStart = True Then 'Button "Start" pressed
If MSComm1.InBufferCount >= 1 Then 'Input buffer is not empty...
o sorry i guess is hould have mentioned im writting c++, and the <string> class.
that code gives me an error:
error C2664: 'atoi' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
why is it that when i do this:
output = line.substr(line.find("V"),line.find("/")) + " ";
line.erase(0,line.find("//")+3);
output+=line;
on this line for example:
line = 27009V234288/27008G00000000/270008// 14 2707 08 234288 032022
i get this:
output...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.