Is there a way to make a code run when a form minimize? I mean when the user presses the minimize button on a form.
I think I am, therefore, I am. I think.
Sure, in your Form_Resize event, you can test it Code: If Me.WindowState = vbMinimized Then ..... run the code End If
If Me.WindowState = vbMinimized Then ..... run the code End If
Insomnia is just a byproduct of, "It can't be done" Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum. Read the HitchHiker's Guide to Getting Help on the Forums. Here is the list of TAGs you can use to format your posts Here are VB6 Help Files online {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor} {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}
Forum Rules