Failure to Detect vbMinimized
Posted on 2007-11-18
I have a small program that's behaving very strangely. The problem code is something like this:
If Me.WindowState = vbMinimized Then
lblResults.Caption = "long text"
Me.Caption = "short text"
Pretty simple and as you might expect it works just fine on my PC and its Windows XP Professional SP2 OS. The problem is that when I install the app on my wife's PC which has Windows XP Multimedia Edition SP2 and run and minimize the app, the form's caption does not change to "short text" but rather remains at its default value.
I even went so far as to create my own IsMinimized property that depends on the form's Width and again while that works on my PC it doesn't on my wife's.
Does anyone have any idea what's going on?