Is it possible to have a button open a form with an "embed" exe?
Is it possible to embed an EXE into a VB form?
Page 1 of 15 Replies - 4802 Views - Last Post: 11 August 2009 - 09:13 PM
Replies To: Is it possible to embed an EXE into a VB form?
#2
Re: Is it possible to embed an EXE into a VB form?
Posted 11 August 2009 - 01:29 PM
What \ Huh?
Are you talking "embedding" an application into another, in such a manner that: say I run your program, it will have another assembly within it that will be copied to disk and executed. Is that what you mean?
If so, I am left to wonder, why?
Are you talking "embedding" an application into another, in such a manner that: say I run your program, it will have another assembly within it that will be copied to disk and executed. Is that what you mean?
If so, I am left to wonder, why?
#3
Re: Is it possible to embed an EXE into a VB form?
Posted 11 August 2009 - 01:32 PM
LoveIsNull, on 11 Aug, 2009 - 12:29 PM, said:
What \ Huh?
Are you talking "embedding" an application into another, in such a manner that: say I run your program, it will have another assembly within it that will be copied to disk and executed. Is that what you mean?
If so, I am left to wonder, why?
Are you talking "embedding" an application into another, in such a manner that: say I run your program, it will have another assembly within it that will be copied to disk and executed. Is that what you mean?
If so, I am left to wonder, why?
I want to put a program inside a VB form
#4
Re: Is it possible to embed an EXE into a VB form?
Posted 11 August 2009 - 02:03 PM
You want another executable in an executable? yeah.. That's what class libraries are for.. compile the first project into a dll then add that as a resource to the one other one.
#5
Re: Is it possible to embed an EXE into a VB form?
Posted 11 August 2009 - 03:34 PM
#6
Re: Is it possible to embed an EXE into a VB form?
Posted 11 August 2009 - 09:13 PM
How? So you have project_1.. go to that solution's properties.. in the top tab switch from 'executable' to 'class library'. Compile.
In project_2.. go to THAT project's properties. Under references click 'add'. Navigate to the directory where project_1's dll compiled to.
Affirm you want to add it.
Now you can create an object in project_2's vb code that is project_1's stuff.
VSNET should provide a default constructor but other methods like showing project_1's form and what nto need to be handled by you.
In project_2.. go to THAT project's properties. Under references click 'add'. Navigate to the directory where project_1's dll compiled to.
Affirm you want to add it.
Now you can create an object in project_2's vb code that is project_1's stuff.
VSNET should provide a default constructor but other methods like showing project_1's form and what nto need to be handled by you.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote







|