Click here to Skip to main content
16,013,747 members
Home / Discussions / C#
   

C#

 
QuestionHow to make a modal form? Pin
Rickard Andersson2028-Apr-02 6:12
Rickard Andersson2028-Apr-02 6:12 
AnswerRe: How to make a modal form? Pin
Andrew Peace28-Apr-02 6:47
Andrew Peace28-Apr-02 6:47 
Questionhow to minimize the window form into tray icons toolbox! Pin
zhoujun28-Apr-02 3:20
zhoujun28-Apr-02 3:20 
QuestionGraphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 1:50
protectorChristian Graus28-Apr-02 1:50 
AnswerRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 9:08
Neil Van Note28-Apr-02 9:08 
GeneralRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 10:19
Neil Van Note28-Apr-02 10:19 
GeneralRe: Graphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 10:28
protectorChristian Graus28-Apr-02 10:28 
GeneralRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 10:43
Neil Van Note28-Apr-02 10:43 
What I have working is this:

I am getting the HWND and the Graphics object with something a little more robust but equivalent to:

IntPtr hWnd = (IntPtr) uint.Parse(args[1]);
.
.
.
Graphics g = Graphics.FromHwnd(hWnd);
.
.
.
I call GetClientRect on the hWnd, and use that for all of my drawing...

GeneralRe: Graphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 10:58
protectorChristian Graus28-Apr-02 10:58 
GeneralRe: Graphics::FromHwnd ??? Pin
James T. Johnson28-Apr-02 11:06
James T. Johnson28-Apr-02 11:06 
GeneralRe: Graphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 11:13
protectorChristian Graus28-Apr-02 11:13 
GeneralRe: Graphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 11:27
protectorChristian Graus28-Apr-02 11:27 
GeneralRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 11:31
Neil Van Note28-Apr-02 11:31 
GeneralRe: Graphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 12:08
protectorChristian Graus28-Apr-02 12:08 
GeneralRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 12:19
Neil Van Note28-Apr-02 12:19 
GeneralRe: Graphics::FromHwnd ??? Pin
Christian Graus28-Apr-02 12:29
protectorChristian Graus28-Apr-02 12:29 
GeneralRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 13:39
Neil Van Note28-Apr-02 13:39 
GeneralRe: Graphics::FromHwnd ??? Pin
James T. Johnson28-Apr-02 13:09
James T. Johnson28-Apr-02 13:09 
GeneralRe: Graphics::FromHwnd ??? Pin
Neil Van Note28-Apr-02 11:29
Neil Van Note28-Apr-02 11:29 
AnswerRe: Graphics::FromHwnd ??? Pin
Neil Van Note29-Apr-02 10:18
Neil Van Note29-Apr-02 10:18 
GeneralRe: Calling Win32 API Pin
James T. Johnson27-Apr-02 22:56
James T. Johnson27-Apr-02 22:56 
GeneralQuestion Pin
Vlad Beu27-Apr-02 9:51
Vlad Beu27-Apr-02 9:51 
GeneralRe: Question Pin
James T. Johnson27-Apr-02 11:31
James T. Johnson27-Apr-02 11:31 
GeneralUsing COM Interface ICatInformation... Pin
Ollie27-Apr-02 4:52
Ollie27-Apr-02 4:52 
GeneralDisable Close Button Pin
Sabran27-Apr-02 0:05
Sabran27-Apr-02 0:05 

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.