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. C# User Controls

C# User Controls

Scheduled Pinned Locked Moved C#
csharpwinformsdesign
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.
  • E Offline
    E Offline
    eyalRF
    wrote on last edited by
    #1

    Hello, I would like to a create a user control which composed of two basic controls, control1 and control2. I was wondering, if i can program the user control in a way that when I use the control in an another project, I could, IN DESIGN TIME, disapear one of the inner controls. i.e. there would be a proprety of the control that would control the visiblty of the controls (e.g. a pull down that would say control1, control2, both, none). Thanks.

    B 1 Reply Last reply
    0
    • E eyalRF

      Hello, I would like to a create a user control which composed of two basic controls, control1 and control2. I was wondering, if i can program the user control in a way that when I use the control in an another project, I could, IN DESIGN TIME, disapear one of the inner controls. i.e. there would be a proprety of the control that would control the visiblty of the controls (e.g. a pull down that would say control1, control2, both, none). Thanks.

      B Offline
      B Offline
      Bright Zhang
      wrote on last edited by
      #2

      I think you can add a property:ViewType(enum) for it. control1 and control2's visiblity can be based on the property,and you can also re-draw the width and border for it.

      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