ComboBox和TextBox控件都带有自动前缀匹配,只要设置其中的AutoCompleteMode,AutoCompleteSource,AutoCompleteCustomSource三个属性的值即可. 如果是ComboBox绑定数据的话,,AutoCompleteSource直接选择ListItems. 如果不绑定数据的话,就需要在AutoCompleteCustomSource集合里添加自己的提示数据. 然后将,AutoCompleteSource选择CustomSource. Aut
C#中一个RichTextBox,当新写入内容时,超过当前显示区域后,自动滚动到最低端,方便查看内容. private void txtInfo_TextChanged(object sender, EventArgs e) { txtInfo.SelectionStart = txtInfo.Text.Length; //Set the current caret position at the end txtInfo.ScrollToCaret(); //Now scroll
imacros免费版 登录宏代码的示例: //首先登出URL GOTO=http://yoursite/logout.html//打开登录页面URL GOTO=http://yoursite/login.html //输入用户名 TAG POS= TYPE=INPUT:TEXT FORM=ACTION:http://yoursite/login.html ATTR=NAME:username CONTENT=登录用户名 //输入密码 SET !ENCRYPTION NO TAG POS= TYP