Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Form Inheritance

Form Inheritance

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestiondesignoop
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SimmoTech
    wrote on last edited by
    #1

    After spending a long time on a current VB project with 30 similar but different forms, I was looking at using c# and inherited forms to see how much easier it could be. I have a base form with a tab control on it complete with two tabs that will be common to all inherited forms. e.g "General" and "Other Info" What I want to do is add additional tabs between these inherited tabs on the inherited forms. This works ok in Visual Studio (ie. I can move my new tab to between the existing tabs) but when the project is executed, the new tab is put back at the end of the list again. Is this a bug in VS or more, likely, a design limitation? What is the best way to achieve this. I want to keep the GUI mode modification of the tab layout but it seems to be wasteful to have VS create the collection in InitializeComponents() only for me to immediately do the same thing again. Cheers Simon

    N 1 Reply Last reply
    0
    • S SimmoTech

      After spending a long time on a current VB project with 30 similar but different forms, I was looking at using c# and inherited forms to see how much easier it could be. I have a base form with a tab control on it complete with two tabs that will be common to all inherited forms. e.g "General" and "Other Info" What I want to do is add additional tabs between these inherited tabs on the inherited forms. This works ok in Visual Studio (ie. I can move my new tab to between the existing tabs) but when the project is executed, the new tab is put back at the end of the list again. Is this a bug in VS or more, likely, a design limitation? What is the best way to achieve this. I want to keep the GUI mode modification of the tab layout but it seems to be wasteful to have VS create the collection in InitializeComponents() only for me to immediately do the same thing again. Cheers Simon

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      simmotech wrote: Is this a bug in VS or more, likely, a design limitation? Just take a look at the code. It might be a GUI designer error. Maybe the code will throw more light on the issue Nish


      Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups