Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Execute C# / SQL statement in outlook Pin
Christian Graus5-Apr-09 20:21
protectorChristian Graus5-Apr-09 20:21 
QuestionHow to make FTP Pin
E_Gold5-Apr-09 19:56
E_Gold5-Apr-09 19:56 
AnswerRe: How to make FTP Pin
Rajdeep.NET is BACK5-Apr-09 20:03
Rajdeep.NET is BACK5-Apr-09 20:03 
GeneralRe: How to make FTP Pin
stancrm5-Apr-09 21:03
stancrm5-Apr-09 21:03 
QuestionHow to preserve file attributes Pin
sumit70345-Apr-09 19:51
sumit70345-Apr-09 19:51 
AnswerRe: How to preserve file attributes Pin
stancrm5-Apr-09 21:04
stancrm5-Apr-09 21:04 
QuestionHiding a process....help guys! Pin
Rajdeep.NET is BACK5-Apr-09 19:45
Rajdeep.NET is BACK5-Apr-09 19:45 
AnswerRe: Hiding a process....help guys! Pin
King Julien5-Apr-09 20:19
King Julien5-Apr-09 20:19 
Haven't tried this.....

Jus got some time back while googling....

Try it out and post a reply if it works...

using System.Runtime.InteropServices;

      [DllImport("user32.dll")]
      public static extern IntPtr FindWindow(string lpClassName,string lpWindowName);

      [DllImport("user32.dll")]
      static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

        //Sometimes System.Windows.Forms.Application.ExecutablePath works for the
 caption depending on the system you are running under.

         IntPtr hWnd = FindWindow(null, "Your console windows caption"); //put your console window caption here

         if(hWnd != IntPtr.Zero)
         {
            //Hide the window
            ShowWindow(hWnd, 0); // 0 = SW_HIDE
         }

         if(hWnd != IntPtr.Zero)
         {
            //Show window again
            ShowWindow(hWnd, 1); //1 = SW_SHOWNORMA
         }


Have a Happy Coding.....

GeneralRe: Hiding a process....help guys! Pin
Christian Graus5-Apr-09 20:30
protectorChristian Graus5-Apr-09 20:30 
GeneralRe: Hiding a process....help guys! Pin
King Julien5-Apr-09 20:48
King Julien5-Apr-09 20:48 
GeneralRe: Hiding a process....help guys! Pin
Rajdeep.NET is BACK5-Apr-09 21:36
Rajdeep.NET is BACK5-Apr-09 21:36 
AnswerRe: Hiding a process....help guys! Pin
Christian Graus5-Apr-09 20:31
protectorChristian Graus5-Apr-09 20:31 
GeneralRe: Hiding a process....help guys! Pin
King Julien5-Apr-09 20:55
King Julien5-Apr-09 20:55 
AnswerRe: Hiding a process....help guys! Pin
stancrm5-Apr-09 21:28
stancrm5-Apr-09 21:28 
QuestionFor loop Pin
Sajjad Leo5-Apr-09 19:41
Sajjad Leo5-Apr-09 19:41 
AnswerRe: For loop Pin
Christian Graus5-Apr-09 19:44
protectorChristian Graus5-Apr-09 19:44 
AnswerRe: For loop Pin
King Julien5-Apr-09 20:25
King Julien5-Apr-09 20:25 
QuestionResource file without standard notation [modified] Pin
mayapeter5-Apr-09 19:36
mayapeter5-Apr-09 19:36 
AnswerRe: Resource file without standard notation Pin
King Julien5-Apr-09 20:51
King Julien5-Apr-09 20:51 
QuestionLeap Year Problem... Pin
sah4965-Apr-09 19:25
sah4965-Apr-09 19:25 
AnswerRe: Leap Year Problem... Pin
Christian Graus5-Apr-09 19:41
protectorChristian Graus5-Apr-09 19:41 
AnswerRe: Leap Year Problem... [modified] Pin
akhilonly0075-Apr-09 22:56
akhilonly0075-Apr-09 22:56 
QuestionSort an array list Pin
yesu prakash5-Apr-09 19:24
yesu prakash5-Apr-09 19:24 
AnswerRe: Sort an array list Pin
Christian Graus5-Apr-09 19:42
protectorChristian Graus5-Apr-09 19:42 
GeneralRe: Sort an array list Pin
Tom Deketelaere5-Apr-09 22:47
professionalTom Deketelaere5-Apr-09 22:47 

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.