Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
GeneralRe: When Public isnt really Public Pin
MrEyes7-Aug-05 13:03
MrEyes7-Aug-05 13:03 
GeneralRe: When Public isnt really Public Pin
Roman Rodov7-Aug-05 19:16
Roman Rodov7-Aug-05 19:16 
GeneralRe: When Public isnt really Public Pin
lmoelleb7-Aug-05 21:08
lmoelleb7-Aug-05 21:08 
QuestionCan a focused textbox accept only real keypress but not "sendkeys"? Pin
bihshan.lin6-Aug-05 5:48
bihshan.lin6-Aug-05 5:48 
AnswerRe: Can a focused textbox accept only real keypress but not "sendkeys"? Pin
Judah Gabriel Himango6-Aug-05 7:10
sponsorJudah Gabriel Himango6-Aug-05 7:10 
GeneralTo loginto a remote Computer from an ASPX page Pin
Sanjay Suhag6-Aug-05 4:36
sussSanjay Suhag6-Aug-05 4:36 
GeneralTabControl problem... Pin
QzRz6-Aug-05 2:46
QzRz6-Aug-05 2:46 
GeneralHiding a window Pin
mamtz6-Aug-05 2:09
mamtz6-Aug-05 2:09 
Hi
I wrote a simple program that should find a specific window and hide it.
Somehow the window is actually being close (Its process is killed) and the weirdest thing is that the taskbar is also hides.
Here is my code:
<br />
public const int SW_HIDE = 0; <br />
<br />
[DllImport("user32.dll")] <br />
public static extern int ShowWindow(IntPtr hwnd,int nCmdShow); <br />
<br />
private void button1_Click(object sender, System.EventArgs e) { <br />
   string title=textBox1.Text; //gets the window title from a testbox. <br />
   Process[] plist =Process.GetProcesses(); <br />
   foreach(Process p in plist){ <br />
      if(title.IndexOf(p.MainWindowTitle)>=0){ <br />
         ShowWindowAsync(p.MainWindowHandle,SW_HIDE); <br />
      }<br />
   } <br />
} <br />

Can you see the problem? what is it?
or how can i hide a window without closing it?

Thank a lot
Mamtz
GeneralRe: Hiding a window Pin
[Marc]6-Aug-05 9:11
[Marc]6-Aug-05 9:11 
GeneralRe: Reports Pin
Anonymous6-Aug-05 0:16
Anonymous6-Aug-05 0:16 
GeneralRe: Reports Pin
Guffa6-Aug-05 0:55
Guffa6-Aug-05 0:55 
QuestionHow to add buttons to DataGridColumn? Pin
amrutajoshi6-Aug-05 0:12
amrutajoshi6-Aug-05 0:12 
GeneralInsert Date into access database in C#.net Pin
Ming Luo5-Aug-05 23:59
Ming Luo5-Aug-05 23:59 
GeneralRe: Insert Date into access database in C#.net Pin
Guffa6-Aug-05 0:06
Guffa6-Aug-05 0:06 
GeneralRe: Insert Date into access database in C#.net Pin
Ming Luo6-Aug-05 0:13
Ming Luo6-Aug-05 0:13 
GeneralRe: Insert Date into access database in C#.net Pin
Guffa6-Aug-05 6:19
Guffa6-Aug-05 6:19 
GeneralRe: Insert Date into access database in C#.net Pin
Ming Luo6-Aug-05 7:39
Ming Luo6-Aug-05 7:39 
GeneralRe: Insert Date into access database in C#.net Pin
Rob Graham6-Aug-05 16:27
Rob Graham6-Aug-05 16:27 
GeneralRe: Insert Date into access database in C#.net Pin
Dario Solera7-Aug-05 5:53
Dario Solera7-Aug-05 5:53 
GeneralRe: Insert Date into access database in C#.net Pin
Guffa7-Aug-05 20:45
Guffa7-Aug-05 20:45 
GeneralSelf Extracting File Pin
Varun Jain 7865-Aug-05 23:46
Varun Jain 7865-Aug-05 23:46 
GeneralRe: Self Extracting File Pin
Vasudevan Deepak Kumar6-Aug-05 0:56
Vasudevan Deepak Kumar6-Aug-05 0:56 
GeneralRe: Self Extracting File Pin
Varun Jain 7867-Aug-05 23:00
Varun Jain 7867-Aug-05 23:00 
GeneralRe: Self Extracting File Pin
Vasudevan Deepak Kumar7-Aug-05 23:09
Vasudevan Deepak Kumar7-Aug-05 23:09 
GeneralRe: Self Extracting File Pin
Varun Jain 7868-Aug-05 3:43
Varun Jain 7868-Aug-05 3:43 

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.