Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to activate the application which is minimized in task bar?

How to activate the application which is minimized in task bar?

Scheduled Pinned Locked Moved C#
questiontutorial
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hemant kulkarni
    wrote on last edited by
    #1

    Hi, I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false. How can I cahive this activating of application upon receiving the event? Regards, Hemant Kulkarni

    L N 2 Replies Last reply
    0
    • H Hemant kulkarni

      Hi, I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false. How can I cahive this activating of application upon receiving the event? Regards, Hemant Kulkarni

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      How about: WindowState = FormWindowState.Normal; or WindowState = FormWindowState.Maximized;

      H 1 Reply Last reply
      0
      • H Hemant kulkarni

        Hi, I written a form application which is needed to activate when it receives a event from a hook procedure. the hook procedure sends the WM_COPYDATA message to my forms app. When I receive this message from hook I want my form app to be activated and shown to window. In the event handler of the message I tried to set the visible property of form to true, but it didn't work. Also Focus returns false. How can I cahive this activating of application upon receiving the event? Regards, Hemant Kulkarni

        N Offline
        N Offline
        Nader Elshehabi
        wrote on last edited by
        #3

        Hello

        Hemant kulkarni wrote:

        I written a form application which is needed to activate when it receives a event

        How did you Deactivate your form?? Reverse it! Regards:rose:

        H 1 Reply Last reply
        0
        • L Lost User

          How about: WindowState = FormWindowState.Normal; or WindowState = FormWindowState.Maximized;

          H Offline
          H Offline
          Hemant kulkarni
          wrote on last edited by
          #4

          hi, I tried this, but the form is not shown as active application, so this normal or maximized state doesn't affect Thanks and Reagrd Hemant.

          W 1 Reply Last reply
          0
          • H Hemant kulkarni

            hi, I tried this, but the form is not shown as active application, so this normal or maximized state doesn't affect Thanks and Reagrd Hemant.

            W Offline
            W Offline
            wrykyn
            wrote on last edited by
            #5

            Form.BringToFront() ?

            "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

            H 1 Reply Last reply
            0
            • W wrykyn

              Form.BringToFront() ?

              "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

              H Offline
              H Offline
              Hemant kulkarni
              wrote on last edited by
              #6

              Hi, This doesn't work, it just shows the icon on task bar blinking Thanks & Regards, Hemant

              1 Reply Last reply
              0
              • N Nader Elshehabi

                Hello

                Hemant kulkarni wrote:

                I written a form application which is needed to activate when it receives a event

                How did you Deactivate your form?? Reverse it! Regards:rose:

                H Offline
                H Offline
                Hemant kulkarni
                wrote on last edited by
                #7

                Hi, I minimized it by clicking the minimize box, but now I want it to be activated when user presses f12 key which I handle in a Windows hook Thanks & Regards Hemant.

                N 1 Reply Last reply
                0
                • H Hemant kulkarni

                  Hi, I minimized it by clicking the minimize box, but now I want it to be activated when user presses f12 key which I handle in a Windows hook Thanks & Regards Hemant.

                  N Offline
                  N Offline
                  Nader Elshehabi
                  wrote on last edited by
                  #8

                  Hello If that's it then just like stancrm told you WindowState = FormWindowState.Normal should work! If not, try to add Activate() after it.

                  Hemant kulkarni wrote:

                  when user presses f12 key which I handle in a Windows hook

                  I thought WinXP doesn't allow anybody to hook the F12??!! Strange! Regards:rose:

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups