A combobox as new property for a usercontrol to show in the designer crashes Visual Studio
In the user control's class I placed this: [Description("Determines whether the toggle switch's text is hidden or not"), Category("Appearance"), DefaultValue("No"), Browsable(true)] public ComboBox EnableText { set => EnableText.Items.AddRange(new object[] {"Yes","No"}); get => (ComboBox)EnableText.SelectedItem; } When building the project with the user control there is no error. However, the designer, when loading the user controls into the toolbox, hangs and then crashes Visual Studio. What is missing?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.