Visual Studio 2012を使用してvb.netでカスタムプロパティを作成しようとしていますが、デザイン時と実行時の両方でカスタムプロパティを設定するのに問題があります。これはVisualStudio2010の問題ではありませんでした。バグのようですが、いくつかのオプションをオンまたはオフにするのを忘れたのか、コード内の何かを忘れたのでしょうか。
Public Class MyCustomButton
Inherits Button
Private m_MyBackgroundColor As Color
Public Property MyBackgroundColor As Color
Get
Return m_MyBackgroundColor
End Get
Set(value As Color)
value = m_MyBackgroundColor
Me.BackColor = m_MyBackgroundColor
End Set
End Property
End Class