ok how do i make a text box auto scroll?
i made chat program but when they send it goes to the top of the scroll bar.
ive tryed all i could think of but it still goes to the top after they
hit enter instead of just staying there and scrolling down as they type.
and how can i make it so textboxes will send the data to
[email protected] ?
and how can i make txtmain.text print to a printer?
if i havent said yet im using visual basics 6
Quote4) If you call it Visual Basics or abbreviate it as "vB", I will have you killed.
Looks like another victim for CupHead. Read the rules.
And, to answer your second question, look up the Printer object on Google.
To autoscroll a textbox, just move the cursor (read: selection start) to the end of its text contents after adding new text.
what u mean just move the cursor u want it so i have to use scroolbar or what i want an auto scroll not click scrool 1 thing written its gone up again
oh my god... my eyes...
* Disable textbox window updates.
* Add the new text.
* Position the caret after the last character. (SelStart, I think)
* Enable textbox window updates.
* Refresh the window.
Quote from: Grok on November 22, 2003, 10:35 AM
* Disable textbox window updates.
* Add the new text.
* Position the caret after the last character. (SelStart, I think)
* Enable textbox window updates.
* Refresh the window.
Is refreshing window necessary?
What can it hurt? It's not like the guy is squeezing every last cycle out of the CPU.
Quote from: drivehappy on November 22, 2003, 03:15 PM
What can it hurt? It's not like the guy is squeezing every last cycle out of the CPU.
Forcing a re-paint of the UI everytime text is added sounds a little extreme to me.
Quote from: Spht on November 22, 2003, 03:24 PM
Quote from: drivehappy on November 22, 2003, 03:15 PM
What can it hurt? It's not like the guy is squeezing every last cycle out of the CPU.
Forcing a re-paint of the UI everytime text is added sounds a little extreme to me.
It's fucking annoying when your whole desktop flickers each time someone talks. Or maybe it's my slow computer...
Quote from: St0rm.iD on November 22, 2003, 06:56 PM
Quote from: Spht on November 22, 2003, 03:24 PM
Quote from: drivehappy on November 22, 2003, 03:15 PM
What can it hurt? It's not like the guy is squeezing every last cycle out of the CPU.
Forcing a re-paint of the UI everytime text is added sounds a little extreme to me.
It's fucking annoying when your whole desktop flickers each time someone talks. Or maybe it's my slow computer...
It would do that on my 2.4ghz too. When you redraw something (anything really) over and over it flickers.
Quote from: St0rm.iD on November 22, 2003, 06:56 PM
Quote from: Spht on November 22, 2003, 03:24 PM
Quote from: drivehappy on November 22, 2003, 03:15 PM
What can it hurt? It's not like the guy is squeezing every last cycle out of the CPU.
Forcing a re-paint of the UI everytime text is added sounds a little extreme to me.
It's fucking annoying when your whole desktop flickers each time someone talks. Or maybe it's my slow computer...
I believe that's a known issue with locking updates on resizable objects.
i figured this out about a year ago im shocked ppl still posted here but i never did say nvm. but anyway the easiest way for this is when text is added to do something just add TextBox.SelStart = Len(TextBox.Text) to your add chat sub or under TextBox_Change()
Public Sub AddChat(TextBox As TextBox, Text As String)
TextBox.Text = TextBox.Text & Text & vbCrLf
TextBox.SelStart = Len(TextBox.Text)
End Sub
most prob already knew this but if someone wants to know here u go :D
Quote from: SPY-3 on August 24, 2004, 06:49 AMim shocked ppl still posted here
QuoteReply #11 on: November 23, 2003, 10:43 am
That hardly classifies
still imho.