首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > C# 编写的智能感知文本框

C# 编写的智能感知文本框

资 源 简 介

介绍 智能感知功能来预测这个词,当我们正在键入的单词的起始字母只不过是。我们都使用 Visual Studio,那里我们正在键入的类名称或命名空间名称,Visual Studio 将自动显示的对象列表中持有的成员与那类的方法 / 命名空间。 这篇技巧文章一定会对你,使你自己的智能感知文本框在 C# 中有用。这不完美的智能感知,但它具有最小处理自动词完成的能力。 系统的设计 此应用程序的系统设计是很容易理解。当我们在文本框中输入文本时,弹出列表框中显示的列表的开始在字符串中的最后一个单词的字母。从词典列表中,我们创建了应用程序加载的弹出列表框项目。如果最后一个字不能配合列表元素,弹出式菜单,菜单隐藏。 弹出式菜单,菜单应该显示的文本行,所以在这里我们需要得到的文本光标位置的缺点。为此,我们需要调用 private extern static int GetCaretPos(out Point p) 函数的user32.dll大会。 使用中的代码 AutoCompleteTextBox 是使智能感知为给定文本框的方法。

文 件 列 表

IntellisenceTextBox\IntellisenceTextBox.sln
IntellisenceTextBox\IntellisenceTextBox.suo
IntellisenceTextBox\IntellisenceTextBox\clsIntelliSense.cs
IntellisenceTextBox\IntellisenceTextBox\frmIntellisenceDemo.cs
IntellisenceTextBox\IntellisenceTextBox\frmIntellisenceDemo.Designer.cs
IntellisenceTextBox\IntellisenceTextBox\frmIntellisenceDemo.resx
IntellisenceTextBox\IntellisenceTextBox\IntellisenceTextBox.csproj
IntellisenceTextBox\IntellisenceTextBox\Program.cs
IntellisenceTextBox\IntellisenceTextBox\bin\Debug\IntellisenceTextBox.exe
IntellisenceTextBox\IntellisenceTextBox\bin\Debug\IntellisenceTextBox.vshost.exe
IntellisenceTextBox\IntellisenceTextBox\bin\Debug\IntellisenceTextBox.vshost.exe.manifest
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\GenerateResource.read.1.tlog
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\GenerateResource.write.1.tlog
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\IntellisenceTextBox.csproj.FileListAbsolute.txt
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\IntellisenceTextBox.exe
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\IntellisenceTextBox.Form1.resources
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\IntellisenceTextBox.frmIntellisenceDemo.resources
IntellisenceTextBox\IntellisenceTextBox\obj\x86\Debug\IntellisenceTextBox.Properties.Resources.resources
IntellisenceTextBox\IntellisenceTextBox\Properties\AssemblyInfo.cs
IntellisenceTextBox\IntellisenceTextBox\Properties\Resources.Designer.cs
IntellisenceTextBox\IntellisenceTextBox\Properties\Resources.resx
IntellisenceTextBox\IntellisenceTextBox\Properties\Settings.Designer.cs
IntellisenceTextBox\IntellisenceTextBox\Properties\Settings.settings
VIP VIP
0.181499s