5 Replies - 5669 Views - Last Post: 11 August 2009 - 09:13 PM Rate Topic: -----

#1 Iamazn  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 44
  • Joined: 17-June 09

Is it possible to embed an EXE into a VB form?

Posted 11 August 2009 - 01:10 PM

Is it possible to have a button open a form with an "embed" exe?
Is This A Good Question/Topic? 0
  • +

Replies To: Is it possible to embed an EXE into a VB form?

#2 LoveIsNull  Icon User is offline

  • Recovering D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 646
  • Joined: 10-March 09

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?
Was This Post Helpful? 0
  • +
  • -

#3 Iamazn  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 44
  • Joined: 17-June 09

Re: Is it possible to embed an EXE into a VB form?

Posted 11 August 2009 - 01:32 PM

View PostLoveIsNull, 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?

I want to put a program inside a VB form
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8964
  • View blog
  • Posts: 33,624
  • Joined: 12-June 08

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.
Was This Post Helpful? 0
  • +
  • -

#5 Iamazn  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 44
  • Joined: 17-June 09

Re: Is it possible to embed an EXE into a VB form?

Posted 11 August 2009 - 03:34 PM

View Postmodi123_1, on 11 Aug, 2009 - 01:03 PM, said:

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.


How?
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8964
  • View blog
  • Posts: 33,624
  • Joined: 12-June 08

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1