Hiii
i am making a window application in C#, in which i want to compare the entered string word by word with the form heading(text property).
I mean when user enter the string, then on button click system should match each word of the string to the heading of the form.
If suppose form heading is of 20 words, and if around 12-15 words of the entered string will match with the heading of the form , then system should show that particular form.
Kindly help me in this, kindly provide me code , if possible....
How to compare the string word by word with form heading?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 1, 2009, 5:48 AM EDT
using FormsCollection Object
FormsCollection openForms = Application.OpenForms
then you can do a search on the words in the user entered string and compare it to the FormsCollection, after doing so just do your logic
wheter you want to open the specific form, search in it or whatever
Dont forget to mark this as "Accepted Answer"
Anurag Gupta22 reputationPosted Sep 2, 2009, 12:42 AM EDT
this is something exact match of tring with heading of the form...
what i want is that if out of 20 around 15 words of the string will match with the
heading of the form, so in that also it will show the form.