Click here to Skip to main content
16,005,339 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I copy ascii & non-ascii chars from file to buffer Pin
tovipul31-Aug-04 1:58
tovipul31-Aug-04 1:58 
Generaldatatable from Datagrid Pin
sreejith ss nair30-Aug-04 22:56
sreejith ss nair30-Aug-04 22:56 
GeneralRe: datatable from Datagrid Pin
Dave Kreskowiak31-Aug-04 6:08
mveDave Kreskowiak31-Aug-04 6:08 
GeneralRe: datatable from Datagrid Pin
sreejith ss nair31-Aug-04 17:04
sreejith ss nair31-Aug-04 17:04 
GeneralRe: datatable from Datagrid Pin
Dave Kreskowiak1-Sep-04 1:26
mveDave Kreskowiak1-Sep-04 1:26 
GeneralRe: datatable from Datagrid Pin
sreejith ss nair1-Sep-04 1:39
sreejith ss nair1-Sep-04 1:39 
GeneralMinimize and hide the console window Pin
Md Saleem Navalur30-Aug-04 20:53
Md Saleem Navalur30-Aug-04 20:53 
GeneralRe: Minimize and hide the console window Pin
Nick Parker31-Aug-04 3:17
protectorNick Parker31-Aug-04 3:17 
One possible way would be through the use of the Win32 function FindWindow which will give you the HWND or Handle to the command window. Once you have the HWND you can call ShowWindow passing SW_MINIMIZE as the nCmdShow parameter. That should get you started.

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

const UInt32 SW_HIDE = 0 ;
const UInt32 SW_SHOWNORMAL = 1 ;
const UInt32 SW_NORMAL = 1 ;
const UInt32 SW_SHOWMINIMIZED = 2 ;
const UInt32 SW_SHOWMAXIMIZED = 3 ;
const UInt32 SW_MAXIMIZE = 3 ;
const UInt32 SW_SHOWNOACTIVATE = 4 ;
const UInt32 SW_SHOW = 5 ;
const UInt32 SW_MINIMIZE = 6 ;
const UInt32 SW_SHOWMINNOACTIVE = 7 ;
const UInt32 SW_SHOWNA = 8 ;
const UInt32 SW_RESTORE = 9 ;
const UInt32 SW_SHOWDEFAULT = 10 ;
const UInt32 SW_FORCEMINIMIZE = 11 ;
const UInt32 SW_MAX = 11 ;

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


- Nick Parker
My Blog | My Articles

Generala way to access to all object on the form Pin
TehMedic30-Aug-04 19:29
TehMedic30-Aug-04 19:29 
GeneralRe: a way to access to all object on the form Pin
Corinna John30-Aug-04 20:18
Corinna John30-Aug-04 20:18 
GeneralRe: a way to access to all object on the form Pin
sreejith ss nair30-Aug-04 20:33
sreejith ss nair30-Aug-04 20:33 
GeneralRe: a way to access to all object on the form Pin
Corinna John30-Aug-04 20:43
Corinna John30-Aug-04 20:43 
GeneralRe: a way to access to all object on the form Pin
TehMedic30-Aug-04 21:22
TehMedic30-Aug-04 21:22 
GeneralRe: a way to access to all object on the form Pin
Corinna John30-Aug-04 21:37
Corinna John30-Aug-04 21:37 
GeneralRe: a way to access to all object on the form Pin
TehMedic31-Aug-04 1:37
TehMedic31-Aug-04 1:37 
GeneralRe: a way to access to all object on the form Pin
sreejith ss nair30-Aug-04 20:23
sreejith ss nair30-Aug-04 20:23 
GeneralRe: a way to access to all object on the form Pin
Corinna John30-Aug-04 20:32
Corinna John30-Aug-04 20:32 
Question"Shutting down a remote PC? Pin
Salman Taseer`30-Aug-04 18:48
Salman Taseer`30-Aug-04 18:48 
AnswerRe: "Shutting down a remote PC? Pin
Lim Bio Liong30-Aug-04 19:51
Lim Bio Liong30-Aug-04 19:51 
AnswerRe: "Shutting down a remote PC? Pin
Dave Kreskowiak31-Aug-04 5:53
mveDave Kreskowiak31-Aug-04 5:53 
GeneralRe: "Shutting down a remote PC? Pin
Salman Taseer`31-Aug-04 7:13
Salman Taseer`31-Aug-04 7:13 
GeneralPreserving what is drawn to Controls Pin
Member 94235530-Aug-04 15:05
Member 94235530-Aug-04 15:05 
GeneralRe: Preserving what is drawn to Controls Pin
Christian Graus30-Aug-04 15:09
protectorChristian Graus30-Aug-04 15:09 
GeneralRe: Preserving what is drawn to Controls Pin
Joel Lucsy30-Aug-04 17:02
Joel Lucsy30-Aug-04 17:02 
GeneralRe: Preserving what is drawn to Controls Pin
Member 94235531-Aug-04 4:38
Member 94235531-Aug-04 4:38 

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.