Results 1 to 3 of 3

Thread: Detect attempt to minimize to Systay (Intercepting)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240
    Hi,
    Is there a way to detect when a user is trying to minimize to the Systray or the Taskbar. It wpuld be somwthing like intercepting windows message.

    A perfect example is used with download management software (Getright, Godzilla etc.). They automatically intercepts the windows message when someone is trying to download a file.

    I hope you get the general idea ..

    Thanks
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    You can use the form1.WindowState and check if it's minimized (vbminized), normal (vbnormal) or maximized (vbmaximized). You could ask the value of this property in the resize event. Tell me if you need some help with he code. I managed to make my form invisible and send it to the system tray when I minimize my form.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I just want to point that you don't minimize anything to system tray. I suppose if someone have a answer for you, then he/she also could tell me how I could get an event when something changes in systray.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width