Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to reorder ToolStripMenuItems in a MenuStrip Programmatically? Pin
glima3-Aug-06 10:23
glima3-Aug-06 10:23 
GeneralRe: How to reorder ToolStripMenuItems in a MenuStrip Programmatically? Pin
glima3-Aug-06 10:28
glima3-Aug-06 10:28 
GeneralRe: How to reorder ToolStripMenuItems in a MenuStrip Programmatically? Pin
Stefan Troschuetz3-Aug-06 10:36
Stefan Troschuetz3-Aug-06 10:36 
QuestionA source (example) to do... Help ! Pin
bttf3-Aug-06 6:50
bttf3-Aug-06 6:50 
AnswerRe: A source (example) to do... Help ! Pin
Not Active3-Aug-06 7:40
mentorNot Active3-Aug-06 7:40 
GeneralRe: A source (example) to do... Help ! Pin
bttf5-Aug-06 21:47
bttf5-Aug-06 21:47 
GeneralRe: A source (example) to do... Help ! Pin
bttf7-Aug-06 8:53
bttf7-Aug-06 8:53 
QuestionA Little Problem in Single Instance Implementaion!!! Pin
RizwanSharp3-Aug-06 6:40
RizwanSharp3-Aug-06 6:40 
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))<br />
                    ShowWindow(hWnd, SW_SHOWNORMAL);<br />
                else<br />
                    ShowWindow(hWnd, SW_RESTORE);<br />
                UpdateWindow(hWnd);


Please suggest an accurate solution to this problem.
I'll be really thankful to you.

Best Regards,
Rizwan Ahmed.
JokeRe: A Little Problem in Single Instance Implementaion!!! Pin
Not Active3-Aug-06 7:44
mentorNot Active3-Aug-06 7:44 
GeneralRe: A Little Problem in Single Instance Implementaion!!! Pin
RizwanSharp3-Aug-06 7:47
RizwanSharp3-Aug-06 7:47 
AnswerRe: A Little Problem in Single Instance Implementaion!!! Pin
Josh Smith3-Aug-06 8:49
Josh Smith3-Aug-06 8:49 
GeneralRe: A Little Problem in Single Instance Implementaion!!! Pin
RizwanSharp3-Aug-06 19:36
RizwanSharp3-Aug-06 19:36 
QuestionGetting the installation directory in a Deployment project Pin
GazzaJ3-Aug-06 6:31
GazzaJ3-Aug-06 6:31 
QuestionStrange Problem Regarding TabIndex Pin
RizwanSharp3-Aug-06 6:22
RizwanSharp3-Aug-06 6:22 
AnswerRe: Strange Problem Regarding TabIndex Pin
Ingo3-Aug-06 6:35
Ingo3-Aug-06 6:35 
GeneralRe: Strange Problem Regarding TabIndex Pin
RizwanSharp3-Aug-06 6:46
RizwanSharp3-Aug-06 6:46 
GeneralRe: Strange Problem Regarding TabIndex Pin
RizwanSharp3-Aug-06 6:57
RizwanSharp3-Aug-06 6:57 
GeneralRe: Strange Problem Regarding TabIndex Pin
Ingo3-Aug-06 8:18
Ingo3-Aug-06 8:18 
GeneralRe: Strange Problem Regarding TabIndex Pin
RizwanSharp3-Aug-06 19:40
RizwanSharp3-Aug-06 19:40 
GeneralRe: Strange Problem Regarding TabIndex Pin
Ingo3-Aug-06 22:13
Ingo3-Aug-06 22:13 
AnswerRe: Strange Problem Regarding TabIndex Pin
Paul Brower3-Aug-06 10:42
Paul Brower3-Aug-06 10:42 
GeneralRe: Strange Problem Regarding TabIndex Pin
RizwanSharp3-Aug-06 19:32
RizwanSharp3-Aug-06 19:32 
Questionconnection question Pin
skyeddie3-Aug-06 6:01
skyeddie3-Aug-06 6:01 
AnswerRe: connection question Pin
Rob Graham3-Aug-06 6:17
Rob Graham3-Aug-06 6:17 
GeneralRe: connection question Pin
Not Active3-Aug-06 7:32
mentorNot Active3-Aug-06 7:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.