Note that there are some explanatory texts on larger screens.

plurals
  1. POInherited properties are not editable in designer
    primarykey
    data
    text
    <p>I have a base form class that is providing a new property that looks Like this</p> <pre><code>Public Class BaseForm Private _HappyTime As Boolean Public Property HappyTime() As Boolean Get Return _HappyTime End Get Set(ByVal value As Boolean) _HappyTime = Value End Set End Property End Class &lt;Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()&gt; _ Partial Class BaseForm Inherits System.Windows.Forms.Form &lt;System.Diagnostics.DebuggerNonUserCode()&gt; _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub Private components As System.ComponentModel.IContainer &lt;System.Diagnostics.DebuggerStepThrough()&gt; _ Private Sub InitializeComponent() components = New System.ComponentModel.Container Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.Text = "BaseForm" End Sub End Class </code></pre> <p>Now when I inherit the BaseForm on a new form, the HappyTime property displays in the properties window as false, and is uneditable.</p> <p>I've recreated this BaseForm and Inheriting Form in an entirely new soloution and, the HappyTime property is editable and works as expected. For some reason in the existing project (where these changes need to be made) it's not behaving properly.</p> <p>This leads me to believe that it has something to do with the configuration of my project. Does anybody have any insight into this, short of creating a new project and moving all the code into it?</p> <p><strong>Environment Information:</strong> .Net Framework 3.5, Visual Studio 2010, Win7 x64</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload