Windows Form + Search Interface

Posted on 2007-08-05
Last Modified: 2010-05-18
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.
Question by:rocky050371
    LVL 96

    Accepted Solution

    I am not quite sure what you are looking for here.  What is the question?


    Author Comment

    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 .

    Author Comment

    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
    LVL 96

    Expert Comment

    by:Bob Learned
    1) You can have visual inheritance.

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


         Control, WebControl

    LVL 85

    Assisted Solution

    by:Mike Tomlinson
    "Can a form inherit an interface as it already inherits from its base class."

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

    A class can only Inherit from ONE class, but can Implement as MANY Interfaces as you want.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now