event fo minimized form in taskbar click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mahboobeh
    New Member
    • Sep 2010
    • 7

    event fo minimized form in taskbar click

    Hi every body
    I'm tring to handle a mouse click event for the form is minimized to system Task bar(when minimized form in taskbar click). Does any one know how to do that?
    Thanks
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    That event would be raised in the taskbar process, not your program.
    You could watch the various resize events and check the WindowState proeprty to see when the state is minimized and the size is changing?

    There is also some winAPI that allows you to provide a custom context menu (right-click) for your programs entry in the taskbar. I don't know it off hand, but it might have something for left clicking too

    Comment

    • Subin Ninan
      New Member
      • Sep 2010
      • 91

      #3
      Add a notification icon control to ur form.
      Set show in taskbar property of form to false.
      Then in Double click event of notification icon write this.WindowStat e = WindowState.Nor mal;

      you can set context menu with notification icon.

      Comment

      • mahboobeh
        New Member
        • Sep 2010
        • 7

        #4
        tnx
        i used mousehook( from win32 api)to do this.
        it can give mouseevent from active form and send it for my forms when its not active!

        Comment

        Working...