TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pankil Bhatt
971
489
77.4k
How to open third party exe file into windows form
Jan 18 2017 2:10 PM
Hello all,
I need to open third party .exe file inside windows form. I am using this code but it will open another new windows outside the form.
[DllImport(
"user32.dll"
)]
static
extern
IntPtr setParent(IntPtr hwc, IntPtr hwp);
private
void
panel1_Paint(
object
sender, PaintEventArgs e)
{
Process p = Process.Start(
"notepad.exe"
);
Thread.Sleep(5000);
p.WaitForInputIdle();
setParent(p.MainWindowHandle,
this
.Handle);
}
Right now I am opening this notepad.exe in panel view but it will not open inside in form it will open in outside the form.
Please let me know how to do this.
Thanks in advance.
Reply
Answers (
1
)
Currency convert into words format (up to Hundred Billion. )
Filter int32 filed in RadGridView according to textbox