A Little Problem in Single Instance Implementaion!!!
-
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. -
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.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
-
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
That is what I'm doing right now:zzz: Anyways, Thanks, Regards, Rizwan
-
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.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[^]
-
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[^]
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.