Here’s the scenario:
I have a checkbox that when the form is initialized the Visible
property of this checkbox is set to false.
Then, during the program execution, the Visible
property is set to true and the program continues on its merry way.
However, even though the checkbox IS visible when the form is shown, IMMEDIATELY after setting the property, its value does not change.
I posted a video here to demonstrate it during debug.
Has anyone seen this?
It’s the first time I see something remotely close to this happening.
This is the code executed:
1 | Using frm As New FormLicenseInput(Me, code, product)
2 | frm.Message = msg
3 | frm.CheckDontShow.Visible = _IsInitializing
4 | If frm.OpenDialog(ownerWindow) = DialogResult.Cancel Then
5 | Return Nothing
6 | End If
7 | End Using
The property is changed on line 3, but on line 4, when checking during debug, its value is not changed.