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

c sharp user control

Scheduled Pinned Locked Moved C#
csharp
6 Posts 6 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.
  • S Offline
    S Offline
    Sarita S
    wrote on last edited by
    #1

    I have one Form with panel added to it. I have separate user control which display the rectangle.Now I have to add this user control to the form panel.I added it, but it not showing the rectangle.

    Z D M B 4 Replies Last reply
    0
    • S Sarita S

      I have one Form with panel added to it. I have separate user control which display the rectangle.Now I have to add this user control to the form panel.I added it, but it not showing the rectangle.

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      This does not make any sense.

      There are only 10 types of people in the world, those who understand binary and those who don't.

      R 1 Reply Last reply
      0
      • S Sarita S

        I have one Form with panel added to it. I have separate user control which display the rectangle.Now I have to add this user control to the form panel.I added it, but it not showing the rectangle.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        How are you drawing the rectangle? Without seeing the code in the user control it's just about impossible to tell you anything useful.

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        1 Reply Last reply
        0
        • S Sarita S

          I have one Form with panel added to it. I have separate user control which display the rectangle.Now I have to add this user control to the form panel.I added it, but it not showing the rectangle.

          M Offline
          M Offline
          Matt T Heffron
          wrote on last edited by
          #4

          This is either a Windows Forms or WPF issue. Not really C# Please use the correct forum.

          A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.

          1 Reply Last reply
          0
          • S Sarita S

            I have one Form with panel added to it. I have separate user control which display the rectangle.Now I have to add this user control to the form panel.I added it, but it not showing the rectangle.

            B Offline
            B Offline
            BillWoodruff
            wrote on last edited by
            #5

            To make sense of this, we need to know what you mean by "the rectangle:" is that created by your use of the Paint Event in the UserControl ? If you place the UserControl on a Form do you see the "rectangle:" have you ever observed the "rectangle" being drawn as you would like it drawn ?

            «To kill an error's as good a service, sometimes better than, establishing new truth or fact.» Charles Darwin in "Prospero's Precepts"

            1 Reply Last reply
            0
            • Z ZurdoDev

              This does not make any sense.

              There are only 10 types of people in the world, those who understand binary and those who don't.

              R Offline
              R Offline
              Richard Givis
              wrote on last edited by
              #6

              Your reply is perfect. Especially the joke about the 10 types of people. :laugh:

              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