Windows Form + Search Interface

I want all grid to implement the same sort functionality, effectively each grid launches a find form, the user sets certain values and these are set on the owning form.

Also if the find form  recieves the the owner form as a paramter, do I need to cast it to set its values, if so would I need to know the form name as well.
rocky050371Asked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
I am not quite sure what you are looking for here.  What is the question?

Bob
0
 
rocky050371Author Commented:
If I add a form which has a grid which I want the user to be able to use a seperate always shown search form. Can I inherit an interface which will tie together the find form and the view form with the grid on it. The find form gets properties from the grid form (column selected etc) and visa versa (search string, search direction), so I need to pass the grid form to the search form so it can set the users selection .
0
 
rocky050371Author Commented:
Can a form inherit an interface as it already inherits from its base class. Or is there a workaround to this. The worst case scenario is I have to reproduce the same methods in all view screens
0
 
Bob LearnedCommented:
1) You can have visual inheritance.

2) You can have hierarchical inheritance, just not multiple inheritance.

Hierarchical:
   Control
       WebControl
           Panel

 Multiple:
     Control, WebControl
         Panel

Bob
0
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
"Can a form inherit an interface as it already inherits from its base class."

Technically you don't "inherit" an Interface...you IMPLEMENT an Interface.

A class can only Inherit from ONE class, but can Implement as MANY Interfaces as you want.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.