当我第一次添加滚动条时候,我发现滚动条总是跑向上方,经过研究

解决方案如下:

  • this.textBox1.Focus();
  • 获取焦点
  • this.textBox1.Select(this.textBox1.textLength,0);
  • 选择到最后一行文本
  • this.textBox1.ScrollToCaret();
  • 滑轮滚动到光标处 

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2021-10-27
  • 2021-08-15
  • 2021-08-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案