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. Windows Forms
  4. Changing base form UI design, does not reflect in inherited form.

Changing base form UI design, does not reflect in inherited form.

Scheduled Pinned Locked Moved Windows Forms
designcsharpvisual-studiotutorial
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.
  • K Offline
    K Offline
    kumar bs
    wrote on last edited by
    #1

    Hello everybody. I have a base form "A" with two buttons. This form i inherited to form "B" and saved the project. Now for example if i add one more button to "A", it is not reflecting in form "B". I closed and opened "B" but still it is showing only two buttons. What to do for changes in "A" reflect in "B". I am using VS 2005, C#. Thanks

    L 1 Reply Last reply
    0
    • K kumar bs

      Hello everybody. I have a base form "A" with two buttons. This form i inherited to form "B" and saved the project. Now for example if i add one more button to "A", it is not reflecting in form "B". I closed and opened "B" but still it is showing only two buttons. What to do for changes in "A" reflect in "B". I am using VS 2005, C#. Thanks

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, if you add a Control to FormA inside its constructor (either programmatically or through Visual Designer), it will be present in every instance of FormA, as well as in every instance of FormB which inherits from FormA. if you programmatically add a Control to an instance of FormA after it has been constructed, then its FormA and FormB sibblings would not know this. If none of the above seem to fit, please explain more and/or show the essential parts of your code. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google


      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