12270.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: Click RichTextBox and Position</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: Click RichTextBox and Position</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:jwh@ms1.hinet.net">纪文和</a> on April 22, 1999 at 11:29:17:<p>
In Reply to: <a href="12259.html">Click RichTextBox and Position</a> posted by Ariel on April 22, 1999 at 08:42:33:<p>
: When I chick RichTextBox,I want to know my position in the RichTextBox,<br>: which is length from start to my cursor.How to do?<p>RichTextBox1.SelStart 可找到目前游标所在的位置<br>RichTextBox1.GetLineFromChar(RichTextBox1.SelStart) + 1 可传回在 RichTextBox 控制项中包含指定字元位置的行数。<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12270-->
</ul><!--end: 12270-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?