custom controls and design time
-
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
-
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
.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.
-
.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.
-
I am sorry, I was aware of this only.
-
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
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]