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. user control

user control

Scheduled Pinned Locked Moved C#
question
4 Posts 3 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.
  • M Offline
    M Offline
    muharrem
    wrote on last edited by
    #1

    In order to add an user control to my winform project, Do I have to create "Windows Control Library Project" then make a refrence to it or can I directly create an user control and show it on my form? If so how? I did created it directly in my winform project but then I do not see it on toolbox? Thanks

    R I 2 Replies Last reply
    0
    • M muharrem

      In order to add an user control to my winform project, Do I have to create "Windows Control Library Project" then make a refrence to it or can I directly create an user control and show it on my form? If so how? I did created it directly in my winform project but then I do not see it on toolbox? Thanks

      R Offline
      R Offline
      rEgEn2k
      wrote on last edited by
      #2

      If the UserControl is in the same project it must be compield first.

      1 Reply Last reply
      0
      • M muharrem

        In order to add an user control to my winform project, Do I have to create "Windows Control Library Project" then make a refrence to it or can I directly create an user control and show it on my form? If so how? I did created it directly in my winform project but then I do not see it on toolbox? Thanks

        I Offline
        I Offline
        il_masacratore
        wrote on last edited by
        #3

        Hi, Have you tried to do a right mouse click on the toolbox, and click on "Choose Items"?? Then it will open a form where you can select the items of the toolbox...

        M 1 Reply Last reply
        0
        • I il_masacratore

          Hi, Have you tried to do a right mouse click on the toolbox, and click on "Choose Items"?? Then it will open a form where you can select the items of the toolbox...

          M Offline
          M Offline
          muharrem
          wrote on last edited by
          #4

          when I did "Choose Items" , "Choose Toolbox Items" dialog comes, and in that you can chose net or com components which system knows them before some how. In my case, my user control in my project and I have rebuilt several times, but I never seen it on toolbox so can not use it. Do I have to create a seperate project (window control library type)for only user controls and make a refrence from my form project? Or can I add user controls to the current project directly? Thanks for your help. Muharrem

          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