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. A Little Problem in Single Instance Implementaion!!!

A Little Problem in Single Instance Implementaion!!!

Scheduled Pinned Locked Moved C#
help
5 Posts 3 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.
  • R Offline
    R Offline
    RizwanSharp
    wrote on last edited by
    #1

    Hello, First of all please do not refer any previous articles on this website about my problem and try to point the problem and its solution. Thanks in Advance!!! I'm written some implementation about Single Instance Application. All is working fine. When I run the second instance it stops itself if one already running in the following states of the main Form: 1) minimised 2) maximised 3) Normal The only thing that is not working fine when the main Form is Hidden becuase of Form.Hide(); or Form.Visible = false; Here is the code which i'm using to show the instace of already running application: if (IsIconic(hWnd)) ShowWindow(hWnd, SW_SHOWNORMAL); else ShowWindow(hWnd, SW_RESTORE); UpdateWindow(hWnd); Please suggest an accurate solution to this problem. I'll be really thankful to you. Best Regards, Rizwan Ahmed.

    N J 2 Replies Last reply
    0
    • R RizwanSharp

      Hello, First of all please do not refer any previous articles on this website about my problem and try to point the problem and its solution. Thanks in Advance!!! I'm written some implementation about Single Instance Application. All is working fine. When I run the second instance it stops itself if one already running in the following states of the main Form: 1) minimised 2) maximised 3) Normal The only thing that is not working fine when the main Form is Hidden becuase of Form.Hide(); or Form.Visible = false; Here is the code which i'm using to show the instace of already running application: if (IsIconic(hWnd)) ShowWindow(hWnd, SW_SHOWNORMAL); else ShowWindow(hWnd, SW_RESTORE); UpdateWindow(hWnd); Please suggest an accurate solution to this problem. I'll be really thankful to you. Best Regards, Rizwan Ahmed.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      dotnetdev83 wrote:

      Please suggest an accurate solution to this problem.

      I would but I'd just refer you to this site.;P

      dotnetdev83 wrote:

      please do not refer any previous articles on this website

      only two letters away from being an asset

      R 1 Reply Last reply
      0
      • N Not Active

        dotnetdev83 wrote:

        Please suggest an accurate solution to this problem.

        I would but I'd just refer you to this site.;P

        dotnetdev83 wrote:

        please do not refer any previous articles on this website

        only two letters away from being an asset

        R Offline
        R Offline
        RizwanSharp
        wrote on last edited by
        #3

        That is what I'm doing right now:zzz: Anyways, Thanks, Regards, Rizwan

        1 Reply Last reply
        0
        • R RizwanSharp

          Hello, First of all please do not refer any previous articles on this website about my problem and try to point the problem and its solution. Thanks in Advance!!! I'm written some implementation about Single Instance Application. All is working fine. When I run the second instance it stops itself if one already running in the following states of the main Form: 1) minimised 2) maximised 3) Normal The only thing that is not working fine when the main Form is Hidden becuase of Form.Hide(); or Form.Visible = false; Here is the code which i'm using to show the instace of already running application: if (IsIconic(hWnd)) ShowWindow(hWnd, SW_SHOWNORMAL); else ShowWindow(hWnd, SW_RESTORE); UpdateWindow(hWnd); Please suggest an accurate solution to this problem. I'll be really thankful to you. Best Regards, Rizwan Ahmed.

          J Offline
          J Offline
          Josh Smith
          wrote on last edited by
          #4

          dotnetdev83 wrote:

          First of all please do not refer any previous articles on this website about my problem and try to point the problem and its solution.

          Why would you say that?

          :josh: My WPF Blog[^]

          R 1 Reply Last reply
          0
          • J Josh Smith

            dotnetdev83 wrote:

            First of all please do not refer any previous articles on this website about my problem and try to point the problem and its solution.

            Why would you say that?

            :josh: My WPF Blog[^]

            R Offline
            R Offline
            RizwanSharp
            wrote on last edited by
            #5

            Because I have already explored all the articles and concluded my solution on the basis of the best implementations. All work good but not with the scenirio, I'm facing "The Hidden Form" By the way, I'm interested in Vista Develpement Specially, WPF and WCF. Any guide lines? Best Regards, Rizwan Ahmed.

            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