Embed a 3rd party AIR program inside a c# form -


i looking way embed air standalone - singleform air program inside visual c# form.

i don't need have communication whatsoever, need have "stuck" in zone of form moves around me , resizes when do. (ie: form needs control handler, right?)

i tried using setparent user32.dll lib, doesn't work (although works notepad.exe, code correct).

repeat: don't want have interactivity, want there "as widget".

thank you.

update: know sounds strange, air application in question actual .exe file, not swf. (in fact, puzzling me, i'm quite sure says need install air when install first time), i'm talking app: http://assistenza.vodafone.it/privati/servizi_web/applicazioni/widget_vodafone_it

update 2: tried using user32.dll setparent function receive 1400 error: invalid_window_handler, although handler retrieved calling process.mainwindowshandle, , repeat, code works notepad:

        process notepad = process.start("c:\\windows\\system32\\notepad.exe");         notepad.waitforinputidle();         this.appnotepad = notepad.mainwindowhandle;         setwindowpos(this.appnotepad, -1, 0, 0, panelnotepad.size.width, panelnotepad.height, swp_nomove);         setparent(this.appnotepad, panelnotepad.handle);         setwindowlong(this.appnotepad, gwl_style, ws_visible); 

maybe using webbrowserobject solution. embedding internet explorer inside form, so, can set html page default 1 , show adobe air application.

i'll check if there's way of doing that, acceptable if don't need communicate forms application air one.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -