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....
Loading
Anurag GuptaPosted Sep 2, 2009, 4:42 AM
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.
Roei BarPosted Sep 1, 2009, 9:48 AM
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"