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 8652387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:17:47+00:00 2026-06-12T14:17:47+00:00

I have a WinForms UserControl which I am using in 2 different applications. A

  • 0

I have a WinForms UserControl which I am using in 2 different applications. A Word Add In and another WinForms application. I would like to be able to differ the implementation of say a check in operation based on which application I am in, as there are unique concerns in both applications.

I am struggling however with what to do with the UI concerns which are specific to each application. For example, I want to check the active documents in the Word Add in, but obviously dont want to do this in the WinForms app. I have resolved the fact that I can inject the presenter but I am aware I should keep UI logic out of there. Do I need another layer or do I need to write 2 different versions of the control, which share alot similarities.

  • 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-12T14:17:48+00:00Added an answer on June 12, 2026 at 2:17 pm

    You’d better to abstract out common functions in a separate project and create 2 different implementation for that abstraction.

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

Sidebar

Related Questions

I am making Winforms application. I have put gridview in usercontrol. Which is another
I am using C# + winforms to develop software. I have a UserControl which
I have a WinForms application in which I want to be able to provide
I got a .net WinForms application. I have a UserControl which gets instantiated based
I have a WinForms application which has two panels which individually contain a usercontrol
Is this possible? We have WinForms (CF) apps which use the EMDK, and would
I have a WinForms application with a user control in which I change the
I have a wpf Usercontrol, inside i am using a Winforms pdfviewer to display
I have an existing WinForms application for which I'm now designing new bits in
I have a usercontrol in my wpf application which is causing a stackoverflowexception to

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.