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. custom controls and design time

custom controls and design time

Scheduled Pinned Locked Moved C#
design
5 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.
  • T Offline
    T Offline
    Tyrus182
    wrote on last edited by
    #1

    hello i have a custom control that inherits a rich textbox i had this control on my main form and then suddenly it dissapeared and i can no longer drag the control onto the form i do have a designer but it hasnt helped waht could possibly not allow me to be able to use my control at design time

    J H 2 Replies Last reply
    0
    • T Tyrus182

      hello i have a custom control that inherits a rich textbox i had this control on my main form and then suddenly it dissapeared and i can no longer drag the control onto the form i do have a designer but it hasnt helped waht could possibly not allow me to be able to use my control at design time

      J Offline
      J Offline
      Jay Shankar
      wrote on last edited by
      #2

      .Net Designer does not support the overloaded constructors of the controls in it, If your user control has some controls which have overloaded constructors, there is probability that your contituent controls get disappered when you drop it on the form.

      T 1 Reply Last reply
      0
      • J Jay Shankar

        .Net Designer does not support the overloaded constructors of the controls in it, If your user control has some controls which have overloaded constructors, there is probability that your contituent controls get disappered when you drop it on the form.

        T Offline
        T Offline
        Tyrus182
        wrote on last edited by
        #3

        it just hase a normal constructor any other ideas?

        J 1 Reply Last reply
        0
        • T Tyrus182

          it just hase a normal constructor any other ideas?

          J Offline
          J Offline
          Jay Shankar
          wrote on last edited by
          #4

          I am sorry, I was aware of this only.

          1 Reply Last reply
          0
          • T Tyrus182

            hello i have a custom control that inherits a rich textbox i had this control on my main form and then suddenly it dissapeared and i can no longer drag the control onto the form i do have a designer but it hasnt helped waht could possibly not allow me to be able to use my control at design time

            H Offline
            H Offline
            Heath Stewart
            wrote on last edited by
            #5

            More than likely you left the default AssemblyVersionAttribute value in your AssemblyInfo.cs file with the asterisk (*) in it. Every time you compile your project the assembly version is changed. Unlike Win32 DLLs, the assembly version matters. A Type is a completely different Type even if the assembly which defines it differs in version. So, either include a project dependency instead of a file dependency if both projets are in the same solution (after opening "Add Reference...", click the Project tab instead of the default .NET tab); or, define a constant version number and control your versioning. You'll need to remove the reference to your older assembly and include the new, hard-coded versioned assembly then re-add your control. For more information about assembly versions read the .NET Framework SDK that was installed by defualt with VS.NET, is available stand-alone at http://msdn.microsoft.com/netframework[^], and that is available online at http://msdn.microsoft.com/library[^]. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

            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