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. UserControl like in TaskPane of MyComputer

UserControl like in TaskPane of MyComputer

Scheduled Pinned Locked Moved C#
design
2 Posts 1 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.
  • F Offline
    F Offline
    freshonlineMax
    wrote on last edited by
    #1

    Hello I'm developing a UserControl like you can see in TaskPane of "My computer". For this i used GroupBox with Label control and some effects to expanding and collapsing it. Then when i used this usercontrol in one windows project, I couldn't add controls to it! I want to add controls like button from toolbox to it in design time by drag-n-drop. Regards

    F 1 Reply Last reply
    0
    • F freshonlineMax

      Hello I'm developing a UserControl like you can see in TaskPane of "My computer". For this i used GroupBox with Label control and some effects to expanding and collapsing it. Then when i used this usercontrol in one windows project, I couldn't add controls to it! I want to add controls like button from toolbox to it in design time by drag-n-drop. Regards

      F Offline
      F Offline
      freshonlineMax
      wrote on last edited by
      #2

      I solved My problem : Here is some links contains samples about this subject : http://www.codeproject.com/cs/miscctrl/xpgroupbox.asp[^] ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.KB.v10.en/enu_kbvcsharpnetkb/vcsharpnetkb/813450.htm And my code : using System.ComponentModel.Design; namespace TaskPanel { [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))] public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); this.ControlAdded += new ControlEventHandler(UserControl1_ControlAdded); } private void UserControl1_ControlAdded(object sender, ControlEventArgs e) { e.Control.BringToFront(); } } }

      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