VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Detects when form is minimized. Can also restore

by Alex Forrow (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 15th July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Detects when form is minimized. Can also restore

Rate Detects when form is minimized. Can also restore



If Me.Height = 360 Then 'minimized
    'Own code
End If
End Sub
Sub Restore() 'I recommend this is called from a system tray icon. This code must be in the form code as it uses 'me'
me.WindowState = 0
me.SetFocus
End Sub

Download this snippet    Add to My Saved Code

Detects when form is minimized. Can also restore Comments

No comments have been posted about Detects when form is minimized. Can also restore. Why not be the first to post a comment about Detects when form is minimized. Can also restore.

Post your comment

Subject:
Message:
0/1000 characters