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. Designer Defaults

Designer Defaults

Scheduled Pinned Locked Moved C#
questioncsharpc++htmlvisual-studio
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.
  • G Offline
    G Offline
    gUrM33T
    wrote on last edited by
    #1

    Hi all, This may be a rather unusual question but as I'm a newbie in C#, I would be grateful if someone can please elaborate. Well, what I want to know is that why is the components variable added everytime in the class even when it is not used anywhere else. Every class generated using the Designer in VS.NET adds this variable in the class. Why? What is the purpose? Thx, Gurmeet


    BTW, can Google help me search my lost pajamas?

    My Articles: HTML Reader C++ Class Library, Numeric Edit Control

    L 1 Reply Last reply
    0
    • G gUrM33T

      Hi all, This may be a rather unusual question but as I'm a newbie in C#, I would be grateful if someone can please elaborate. Well, what I want to know is that why is the components variable added everytime in the class even when it is not used anywhere else. Every class generated using the Designer in VS.NET adds this variable in the class. Why? What is the purpose? Thx, Gurmeet


      BTW, can Google help me search my lost pajamas?

      My Articles: HTML Reader C++ Class Library, Numeric Edit Control

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      you should add all your disposable items to the components IContainer.when calling IContainer.Dispose() it will call Dispose() on all the components it contains. Its merely there for ease of use, like the Events protected property in COntrols.

      top secret AdvancedTextBox

      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