Saturday, 15 March 2014

.net - How to attach my wpf window with calculator (Desktop application)? -



.net - How to attach my wpf window with calculator (Desktop application)? -

how attach wpf window calculator desktop application?

my requirement when move wpf window, calculator application should come , vice-versa.

please guide me right way accomplish objective.

first, assume using standard windows calculator app started as:

system.diagnostics.process.start("calc.exe");

// or, alternatively

system.diagnostics.process.start("calc");

if so, can accomplish goal using win32 dll functions:

[dllimport("user32")] private static extern bool setwindowpos(intptr hwnd, intptr hwndinsertafter, int x, int y, int cx, int cy, int uflags)

as detailed in: hosting external app in wpf window

.net winapp

No comments:

Post a Comment