Click here to Skip to main content
15,910,234 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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.
Posted
Updated 22-Oct-12 20:56pm
v2
Comments
Sergey Alexandrovich Kryukov 22-Oct-12 15:38pm    
It all depends on what do you want to search in, using what search criteria.
Even my access to your hard drive is not enough, because I would also need to know your intentions, and it would also require access to your brain, but right now, due to current foliage season, such access to it is somewhat limited.
--SA

1 solution

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.
 
Share this answer
 
Comments
Member 8821727_GhostAnswer 23-Oct-12 3:31am    
Thanks for reply. Can you provide some samples for this that is I can implement this in my application
OriginalGriff 23-Oct-12 3:38am    
What part did you not understand? You need to do this yourself, as nobody but you has any idea what data you are using, how you are storing it, etc., etc., etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900