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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Tab pabe as a class

Tab pabe as a class

Scheduled Pinned Locked Moved C#
question
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.
  • I Offline
    I Offline
    Inbaljona
    wrote on last edited by
    #1

    I'm writing a window application were I would need to use tab page as an template to be used multiple times. I need an advice as to the best way to do it. Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class? 10x,

    S 1 Reply Last reply
    0
    • I Inbaljona

      I'm writing a window application were I would need to use tab page as an template to be used multiple times. I need an advice as to the best way to do it. Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class? 10x,

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      Inbaljona wrote:

      Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class?

      I'm not sure what you mean by "creating a dialog and inserting into a new tab". I would create a base 'PageTemplate' class (inheriting from UserControl) that defined the template, and then have a class for each page that inherited from this base, and added the extras.

      Simon

      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