well i have made my application kept it on top using SetWindowPos, which works fine, but the problem is if i click the "Show Desktop" button it hides, is there ne way to disable that button until my application is runing
You could probably intercept the message sent to your form, or track the
user mouse input. But there is an easy workaround that could be enough for
your purpouse:
Btw: it seems as if, at least on my machine, the forms are not hided
but minimized...
Special thanks to some wonderful people,
such as Lothar the Great Haensler, Aaron Young,
dr_Michael, Chris Eastwood, TheOnlyOne ClearCode....
...mmm... it does work on win2k....So DarkX_Greece is correct and form
is hided, at least on your Os.
Try change the code in timer event this way:
Code:
Private Sub TShow_Timer()
If Me.WindowState = vbMinimized Then
Me.WindowState = vbNormal
Me.Caption = "done"
End If
If Me.Visible = False Then
Me.Visible = True
End If
End Sub
Special thanks to some wonderful people,
such as Lothar the Great Haensler, Aaron Young,
dr_Michael, Chris Eastwood, TheOnlyOne ClearCode....
Well, maybe there is a code that it will work, but for now, you can use Cimperiali's second way, by using Timer! There is the only way until find something else!
well i dunno about the code as i also have win2k advanced server, neva da less i got the idea that when the form gets minimized activate a timer to resize it to normal again ! thnkx for the tip
Seems as if resize event of form does not trig when you hit the ShowDeskTop icon. That is why I disabled timer in that event: if it trigs, user minimized it,
not the system...
Originally Posted by Hack
If that is what you want to do, you don't need a timer. Just add this
VB Code:
Private Sub Form_Resize()
Me.WindowState = vbNormal
End Sub
Special thanks to some wonderful people,
such as Lothar the Great Haensler, Aaron Young,
dr_Michael, Chris Eastwood, TheOnlyOne ClearCode....
It must be also an other way! I am very sure , because if you can see McAfee's VirusScan messages at the right-bottom of the user's screen and MSN Messenger's messages, then there sure a other way to do it!