Implementing Access-like search

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello:

I have a Form (Form A) that has a datagrid.
When the user chooses to find a value, I open up a second form (Form B) (not
a dialog), wherein the user enters the search string, direction etc. When he
clicks on search, it executes a Search method on Form B. So, now both the
windows are shown and the user can continue the search and when successful,
the row pointer is changed accordingly.

I have no problem doing it. But I don't know how to make this generic so it
can be used in any Form that has a grid and needs this functionality.

So, within FormB, the Search function is coded as:

FormA.Search

But when generic, FormA could be any form that provides this functionality.
How can I generalize it?

Thanks.

venkat
 
Vvenk,

In my opinion is this almost the same question as you have sand later,
please do not do that, it makes it almost impossible to get a good
discussion about your problem and therefore useless in my opinion to answer
you.

When someone knows the answer he will answer you here.

Because of the sentence above I do not answer it here.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top