'[Object].ReferenceEquals(WindowState, FormWindowState.Minimized) Then
' System.Windows.Forms.FormWindowState.Minimized Then ' FormWindowState.Minimized Then
...
The evaluation, as you can se I have tried in different ways, evaluates to true even it should be false. The value is normal and it shows me while debugging or printed out in a msgbox. What I want it to do is having it to go into the if-condition when the value is minimized. My simplest surgestion was "IF (me.WindowState = System.Windows.Forms.FormWindowState.Minimized ) Then" but this does not work. What am I missing???
Shouldn't you be saying something like: if mBool = true Then as opposed to:
if mBool Then
Same same..
But I found the problem/issue. The compiler debugs into the Then but does not do the actions. Two same if sentences and it will enter the last one (but not do anything in it, just steps through). A compiler-error of some kind while debugging..
Well, problem/issue solved.. Thanks for reading along..
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Previous Thread in VB.NET Forum Timeline:About VB.NET