Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

Im just building a small application in VB.net and Im a bit stuck.

Its a simple form with 2 buttons on it. I now want to compile it (if that is the correct term) so I can make an EXE and others can use it. Ive search tutorials and seen mentions of command line compilers but can anyone tel lme exactly how I do it and if it can al lbe done form Studio.net without using the command prompt?

 

Any help with be very much appreciated.

Posted

yeah,

 

but i got a question to add to that..

 

in vb6, does it include the images with your application when you hit MAKE EXE. or do u have to still put them in the subdir?

 

in .net u gotta distribute the images(im making a game) with your application in order to make it work. How do i distribute my app without including the source. if i dist. only the EXE file, it will say, "image not found", but if i distribute the app with the source, it will find the image

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted (edited)

add existing item to your project (your image)

make the files Build Action - Embedded Resource.

then you will need to do this:

//Path is the namespace of your project . the image name.
//Ex:  "MyNamespace.Image1.jpg"
//If you created a folder in the soloution and put you pictures in that:
//"MyNamespace.Folder1.Image1.jpg"
Stream s= System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(Path);
//Then you can create the image from the stream.
Image.FromStream(s);

Edited by aewarnick
C#

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...