Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
to have the CheckBox available in the designer, and this works. However, the designer is "unstable". I donot not know howelse to describe this, but, after adding the class below to the project, buttons already added to the project "at times" go missing from the designer or are in-accessible from the designer unless selected from the properties window. Infact, any further additions to the designer after compiling (and moving away from the designer then back) do not seem to "stick". Any ideas what is happening or on how toimplement this differently? I'd prefer to have the checkbox available in the designer. Here's is my entire class that is causing these issues.
Imports System.Windows.Forms.Design <ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)> _ Public Class ToolStripCheckBox Inherits ToolStripControlHost Public Sub New() MyBase.New(New CheckBox) End Sub Public ReadOnly Property CheckBoxControl As CheckBox Get Return TryCast(Control, CheckBox) End Get End Property Public Property Checked As Boolean Get Return CheckBoxControl.Checked End Get Set(ByVal value As Boolean) CheckBoxControl.Checked = value End Set End Property End Class