在Windows项目中查找功能 [英] find functionality in windows project

查看:75
本文介绍了在Windows项目中查找功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#在vs2008中开发Windows应用程序.我想要Windows窗体的查找功能,这意味着当我运行程序时,菜单中的另一个选项卡称为查找".

当我单击此按钮时,将打开一个Windows对话框提示,然后在文本框中输入字符串,然后单击搜索".它将像MS Office中的查找并替换"工具一样工作.

vs2008中已经有任何功能,或者我们需要通过代码创建此功能.

我想搜索显示在当前页面上任何控件中是否存在突出显示的任何字符串.
请提供适当的解决方案.

I am working on windows application in vs2008 with C#. I want to a find function for windows form means when I run my program then there is an another tab in menu "called find".

When I click on this a windows dialog prompt is open and I enter the string in text box and then click on search. It will work like "find and replace" tool in MS Office.

There is any functionality is already in vs2008 or we need to create this functionality by code.

I want to search any string that shows highlighted if this exists in any control placed on current page.
please provide proper solution.

推荐答案

您需要自己在代码中实现-它不作为标准对象"存在,因为没有标准的数据存储方式.

标准对象搜索和替换"类将需要处理来自数据库,excel工作表,XML文件,文本字符串,文本字符串数组,二进制数据流,来自随机访问文件的分页,Word类字典的数据对象,以及任何人可能在某个时候发明的所有东西.
You need to implement it yourself in code - it does not exist as a "standard object" because there is no standard way of storing data.

A "standard object search and replace" class would need to work with data from a database, an excel sheet, XML file, text string, array of text strings, binary data stream, paged from a random access file, a dictionary of Word class objects, and everything else anyone might at some point invent.


这篇关于在Windows项目中查找功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆