Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9015201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:41:31+00:00 2026-06-16T03:41:31+00:00

I need a form that inherits from ContextBoundObject intercept able to use certain methods.

  • 0

I need a form that inherits from ContextBoundObject intercept able to use certain methods. The problem is that multiple inheritance is not allowed in C #.

public partial class FrmListItems : Form, ContextBoundObject
{

}

Does anyone have any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:41:33+00:00Added an answer on June 16, 2026 at 3:41 am

    You can always create a “model” class that inherits a ContextBoundObject and implements all desired behavior, than you can use a Data Binding to fill UI elements on the form to show all necessary data on the screen. You can take a look at various patterns like MVx patterns (MVP, MVC, MVVM) to clearly separate you business logic from the UI.

    Even if C# has a multiple inheritance I’ll suggested to avoid such inheritance because this violates “IS A” relationship between those classes.

    You always should think about your design more deeply trying to decrease maintainance costs. Putting in one class UI and business logic always lead to obscure code that would be hard to maintain and evolve.

    For example, its hard to me to understand how you are going to test your solution. Using separate class simplifies testability a lot as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in need of a dynamic form that will be built from a list
I need to display form-level errors in my forms (errors that do not belong
I have a winforms baseform that contain calls to certain methods that need to
I need the form that will edit the array of entities and their related
I need to create a form that has many of the same fields, that
I need to make the program which have one form that contains PNG image
i have a windows form that contains a bunch of textboxes. I need a
I have a hidden button on a form that I need to click in
I have a form that has a group of 3 text_fields. I need two
I have an html/php form that updates entries on the database server. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.