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

C#

 
GeneralRe: INdividual Character format in Richtext Pin
Vodstok1-Feb-05 10:27
Vodstok1-Feb-05 10:27 
GeneralRe: INdividual Character format in Richtext Pin
Heath Stewart1-Feb-05 10:36
protectorHeath Stewart1-Feb-05 10:36 
GeneralRe: INdividual Character format in Richtext Pin
Heath Stewart1-Feb-05 10:39
protectorHeath Stewart1-Feb-05 10:39 
Questionhow to change the ProcessWindowStyle of a running process Pin
IsaacB1-Feb-05 7:31
IsaacB1-Feb-05 7:31 
AnswerRe: how to change the ProcessWindowStyle of a running process Pin
Dave Kreskowiak1-Feb-05 8:36
mveDave Kreskowiak1-Feb-05 8:36 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
Alex Korchemniy1-Feb-05 8:38
Alex Korchemniy1-Feb-05 8:38 
AnswerRe: how to change the ProcessWindowStyle of a running process Pin
Alex Korchemniy1-Feb-05 8:37
Alex Korchemniy1-Feb-05 8:37 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
IsaacB1-Feb-05 10:33
IsaacB1-Feb-05 10:33 
I tried using the ShowWindow but it just won't work, what I'm trying to do is put an application like notepad or paint or anything else inside windows forms

private void btnStart_Click(object sender, System.EventArgs e)
{
ProcessStartInfo processInfo = new ProcessStartInfo();
processInfo.FileName = "notepad.exe";
processInfo.WindowStyle = ProcessWindowStyle.Hidden;

Process process = Process.Start(processInfo);

Process[] procs = Process.GetProcessesByName("notepad");
if (procs.Length != 0)
{
IntPtr hwnd = procs[0].MainWindowHandle;
CloseWindow(hwnd);

SetParent(hwnd, pbDisplay.Handle);
ShowWindow(hwnd, 5);
}
else
{
MessageBox.Show("Notepad is not running");
}
}

It seems there is some issue with the process focus or something like that, haven't found much info. about the topic, anyone has any idea?
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
Dave Kreskowiak1-Feb-05 12:04
mveDave Kreskowiak1-Feb-05 12:04 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
IsaacB1-Feb-05 12:34
IsaacB1-Feb-05 12:34 
GeneralRe: how to change the ProcessWindowStyle of a running process Pin
Dave Kreskowiak1-Feb-05 17:33
mveDave Kreskowiak1-Feb-05 17:33 
Generalubject : programming with .NET Framework to browsing my bank account, buy and sell stock shares Pin
Close Network1-Feb-05 5:56
Close Network1-Feb-05 5:56 
GeneralRe: ubject : programming with .NET Framework to browsing my bank account, buy and sell stock shares Pin
Charlie Williams1-Feb-05 6:05
Charlie Williams1-Feb-05 6:05 
GeneralFire Events on Windows Border Pin
de9me1-Feb-05 4:54
de9me1-Feb-05 4:54 
GeneralRe: Fire Events on Windows Border Pin
Judah Gabriel Himango1-Feb-05 9:13
sponsorJudah Gabriel Himango1-Feb-05 9:13 
GeneralRe: Fire Events on Windows Border Pin
Heath Stewart1-Feb-05 9:53
protectorHeath Stewart1-Feb-05 9:53 
GeneralRe: Fire Events on Windows Border Pin
Judah Gabriel Himango1-Feb-05 10:09
sponsorJudah Gabriel Himango1-Feb-05 10:09 
GeneralRe: Fire Events on Windows Border Pin
Heath Stewart1-Feb-05 10:28
protectorHeath Stewart1-Feb-05 10:28 
GeneralRe: Fire Events on Windows Border Pin
Judah Gabriel Himango1-Feb-05 11:09
sponsorJudah Gabriel Himango1-Feb-05 11:09 
GeneralRe: Fire Events on Windows Border Pin
Heath Stewart1-Feb-05 10:00
protectorHeath Stewart1-Feb-05 10:00 
GeneralRe: Fire Events on Windows Border Pin
de9me1-Feb-05 10:24
de9me1-Feb-05 10:24 
GeneralHidden Process Pin
Esmo20001-Feb-05 3:11
Esmo20001-Feb-05 3:11 
GeneralRe: Hidden Process Pin
Robert Rohde1-Feb-05 3:26
Robert Rohde1-Feb-05 3:26 
GeneralRe: Hidden Process Pin
Esmo20001-Feb-05 3:39
Esmo20001-Feb-05 3:39 
GeneralRowFilter Pin
msogun1-Feb-05 2:03
msogun1-Feb-05 2:03 

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.