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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:10:36+00:00 2026-05-29T08:10:36+00:00

I have a C# WinForm program that is essentially a glorified text parser. It

  • 0

I have a C# WinForm program that is essentially a glorified text parser. It takes a line of hexidecimal and converts it to human readable information based on the specs that were presented to me. I have a tabcontrol with several tab pages used to display the information. Several of these tabpages are identical but need to be on different tabs based on the line of text parsed out, if the line is of type ‘A’ it displays the information on tab ‘A’, if it is of type ‘B’, it shows on tab ‘B’ and so on.

The problem I am starting to notice with this, is I have quite a bit of textboxes and other controls spanned over all of these tab pages and I believe it is effecting performance a little. I beleive I have in the range of 150+ textboxes now, about the same checkboxes and the like.

The question I have is, is there a way to reuse one page of controls over multiple tab pages and have them display different information based on the tab, so perhaps I can cut down my 100’s of controls and simplify the program itself?

  • 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-05-29T08:10:38+00:00Added an answer on May 29, 2026 at 8:10 am

    Read down to the added section for a bit more clarity, as I rambled a bit.

    There are a couple of ways to solve this architecturally. the basic concept is stop thinking about “tab pages” as a physical concept and start thinking about it logically. As a logical concept, in your implementation, a tab page is a set of controls, some of which are unique and some of which are common (or common to more than one tab).

    In a purely dynamic system, you fill in the “controls” and dynamically paint depending on which “tab” the person clicks. This means you do not really need to use a tab control. Instead you paint the “tab page” based on what information should display to the user.

    Another option is to leave the unique “controls” already laid out on a “tab page” and leave containers you can add in the non-unique controls to. This takes a bit of planning to determine what controls need to display on what page and how the layout of static (controls placed on a tab) and dynamic intertwine. In other words, a bit of planning can save you a lot of grief.

    Either way, you want to fill a single control once, no matter how many “tab pages” it is used on.

    Added: Since this is winforms, you have to change your thought paradigm a bit. If you were a webforms developer, you would already think in terms of containers.

    One option is a strategy pattern for tabs. the strategy contains the controls needed to paint the “tab page” and their location and size on the page. When a person clicks a tab, you reach into the “bucket o controls” and dynamically add based on the “tab” (strategy) used. You can even pass in the tab page to the strategy and have it dynamically painted there.

    the main point in the entire answer is do the work once and then display as needed.

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

Sidebar

Related Questions

I have written a winform program that gathers information from several database tables and
I have a winform program that uses Merge Replication to keep a local SQL
I have a program that when it starts, opens a winform (it is the
I have a WinForm program that checks a database for changes, and if there
I have a winform program that allows users to upload Shockwave Flash movies to
I have a C# (WinForm) program that supports scanning using WIA. I am trying
I have a winform program that does some asynchronous IO on a SerialPort .
i have a program(winform) that runs through a lot of files(in the area of
i have a winform app that contains a form1 and the program.cs file. in
I have a progaram that can be ran both as a winform, or from

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.