I sometimes need to set a form's control properties from elsewhere in the code, and I'm getting strange errors whenever I try. In my situation, I've created a checkbox that I want to change, but while running from withing another form. Here's a sample of that code:
Dim UseCheck As System.Windows.Forms.CheckBox = MyForm.MyCheckbox
.Checked = False
.Enabled = True
With this code in place, the form won't open.