Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I scroll a textbox like the mIRC channel window?

channel mIRC scroll TextBox window
0
Posted

How do I scroll a textbox like the mIRC channel window?

0

Your textbox must have the MultiLine property set to true, and the ScrollBars property set to 2 (show vertical). Use the following in your textbox s change event. Private Sub MyTextBox_Change() MyTextBox.SelStart = Len(MyTextBox.Text) End Sub This causes the textbox to scroll to the bottom of the textbox every time the contents of the box changes. There is a somewhat negative sideaffect, however, in that you might be scrolling upwards when text is added, and this code will cause the textbox to jump to the end again. At this time, I know of no way to prevent this side affect, although I am sure there is at least one way to block it.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123