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

C#

 
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 
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 
I mean that I have a form in winforms that has a picture box in the code below called pbDisplay, I get the handler of the picture box and with SetParent() I put the notepad inside the picture box

I start notepad hidden so the user doesnt see when the notepad opens outside the application, but the problem is now that the notepad is inside how do i change the status from hidden to normal or maximized

In fact the application I want to put inside the picture box is called IPass, but I'm hoping that after being able to do it with notepad the change wont be that much problem

**************************

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");
}
}

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 
GeneralRe: RowFilter Pin
Robert Rohde1-Feb-05 3:28
Robert Rohde1-Feb-05 3:28 
Questionhow can i delete a file in c#? Pin
vyki_c1-Feb-05 1:59
vyki_c1-Feb-05 1:59 

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.