Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to write a simple service Pin
Tom Larsen26-Apr-05 9:22
Tom Larsen26-Apr-05 9:22 
AnswerRe: How to write a simple service Pin
Heath Stewart26-Apr-05 9:33
protectorHeath Stewart26-Apr-05 9:33 
GeneralRe: How to write a simple service Pin
dwark10626-Apr-05 13:29
dwark10626-Apr-05 13:29 
Generalopen new window in c# Pin
ABBASI_RA26-Apr-05 8:34
ABBASI_RA26-Apr-05 8:34 
GeneralRe: open new window in c# Pin
Heath Stewart26-Apr-05 9:36
protectorHeath Stewart26-Apr-05 9:36 
GeneralRe: open new window in c# Pin
Polis Pilavas26-Apr-05 10:40
Polis Pilavas26-Apr-05 10:40 
QuestionHow to get the window state? Pin
Sheela Krishnan26-Apr-05 8:33
Sheela Krishnan26-Apr-05 8:33 
AnswerRe: How to get the window state? Pin
Dennis C. Dietrich26-Apr-05 8:53
Dennis C. Dietrich26-Apr-05 8:53 
Sheela Krishnan wrote:
I am trying to get the windowstate of a window based on its process id.
Below is what I tried... But the GetWindowPlacement method returns false most of the times inspite of the length of the windowplacvement object being initialized. Even if the method returns true, its showCmd is always NORMAL. While testing my window was always MAXIMIZED!


Assuming that Win32Wrapper.GetWindowPlacement() indeed does only encapsulate the native Win32 call, you're simply passing the wrong value. GetWindowPlacement()[^] expects a handle to a window, not to a process. If you're interested in the state of the main window of a process you can use the Process.MainWindowHandle Property[^] to obtain the correct handle.

Best regards
Dennis
GeneralTabControl Pin
Alex_Y26-Apr-05 8:18
Alex_Y26-Apr-05 8:18 
GeneralRe: TabControl Pin
Marc Clifton26-Apr-05 11:16
mvaMarc Clifton26-Apr-05 11:16 
GeneralRe: TabControl Pin
Alex_Y27-Apr-05 3:55
Alex_Y27-Apr-05 3:55 
GeneralRe: TabControl Pin
Marc Clifton27-Apr-05 4:08
mvaMarc Clifton27-Apr-05 4:08 
GeneralRe: TabControl Pin
Alex_Y27-Apr-05 5:07
Alex_Y27-Apr-05 5:07 
GeneralSaving a Panel/Groupbox to JPG Pin
Da`Sooty26-Apr-05 7:38
Da`Sooty26-Apr-05 7:38 
GeneralRe: Saving a Panel/Groupbox to JPG Pin
Heath Stewart26-Apr-05 9:47
protectorHeath Stewart26-Apr-05 9:47 
GeneralFileIOPermissions Pin
Member 141845426-Apr-05 7:26
Member 141845426-Apr-05 7:26 
GeneralRe: FileIOPermissions Pin
Heath Stewart26-Apr-05 9:38
protectorHeath Stewart26-Apr-05 9:38 
GeneralRe: FileIOPermissions Pin
26-Apr-05 9:47
suss26-Apr-05 9:47 
GeneralRe: FileIOPermissions Pin
Heath Stewart26-Apr-05 11:12
protectorHeath Stewart26-Apr-05 11:12 
GeneralRe: FileIOPermissions Pin
Member 141845429-Apr-05 6:25
Member 141845429-Apr-05 6:25 
GeneralRe: FileIOPermissions Pin
Heath Stewart29-Apr-05 6:28
protectorHeath Stewart29-Apr-05 6:28 
GeneralRe: FileIOPermissions Pin
Member 14184542-May-05 9:05
Member 14184542-May-05 9:05 
QuestionHow to get fan properties? Pin
Yeast2726-Apr-05 7:09
Yeast2726-Apr-05 7:09 
AnswerRe: How to get fan properties? Pin
Heath Stewart26-Apr-05 9:40
protectorHeath Stewart26-Apr-05 9:40 
GeneralRe: How to get fan properties? Pin
Yeast2726-Apr-05 19:22
Yeast2726-Apr-05 19:22 

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.