سلام، والا من تست نکردم فایل فلش رو
هرچی بوده با mmb ساختم و راحت اجرا شده و تویی محیط ویژوال استودیو تا حالا زیاد کار نکردم
چرا فایل swf رو به exe تبدیل نمی کنید؟!
و اینجوری درون فرم فراخوانی کنید:
شما اول این فضای نام ها رو using کن :
using System.Runtime.InteropServices;
using System.Diagnostics;
بعد این کد ها رو تو کلاس اصلی بنویس :
[DllImport("USER32.DLL")]
static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
[DllImport("USER32.dll")]
private static extern bool MoveWindow(IntPtr hwnd, int x, int y, int cx, int cy, bool repaint);
یه پنل روی فرمت بکش و خاصیت Dock اون رو Fill بذار ...
حالا تو رویداد Load مربوط به فرم یا هر جای دیگه این کدها رو بنویس :
Process process = Process.Start("notepad.exe");
process.WaitForInputIdle();
SetParent(process.MainWindowHandle, this.panel1.Handle);
MoveWindow(process.MainWindowHandle, 0, 0, this.Width - 90, this.Height, true);
منبع:
https://barnamenevis.org/showthread.p...=1#post1564893