Click here to Skip to main content
15,892,480 members
Home / Discussions / Visual Basic
   

Visual Basic

 
General(407) Proxy Authentication Required Pin
Bernhard Hofmann24-Jul-03 5:08
Bernhard Hofmann24-Jul-03 5:08 
GeneralPrinting Graphics Pin
S Guruprasad24-Jul-03 2:25
S Guruprasad24-Jul-03 2:25 
Generalvb resource file Pin
r i s h a b h s23-Jul-03 21:42
r i s h a b h s23-Jul-03 21:42 
Generalicon for vb non gui application Pin
r i s h a b h s23-Jul-03 23:04
r i s h a b h s23-Jul-03 23:04 
GeneralFinding .BMP's and .JPEG's after deployment Pin
Jm6k23-Jul-03 6:47
Jm6k23-Jul-03 6:47 
GeneralRe: Finding .BMP's and .JPEG's after deployment Pin
apferreira23-Jul-03 6:57
apferreira23-Jul-03 6:57 
GeneralRe: Finding .BMP's and .JPEG's after deployment Pin
Jm6k24-Jul-03 12:14
Jm6k24-Jul-03 12:14 
GeneralRe: Finding .BMP's and .JPEG's after deployment Pin
Jm6k24-Jul-03 12:14
Jm6k24-Jul-03 12:14 
I think the second option is the one I was looking for.

Let's say under the Form_Load event, I want the form to open up with a picture. On my computer, the picture is located at C:\my pics\Pic.bmp, but if I were to install this program at on another person's computer, it would install at the default location C:\Program Files\WindowsApplication1\Pic.bmp, and when he would try to run the program, it would not find the picture because my code is looking for C:\my pics\Pic.bmp, not the other path.

So instead of using BitMap.Fromfile("Path") just use Application.StartupPath & "\Pic.bmp" ?

Also, how could I embed a picture or a WAV into the executable?

thanks

The Jazz Master 6000

DJ Badknees

Parma Grind Crew - www.geocities.com/parmagrindcrew
GeneralRe: Finding .BMP's and .JPEG's after deployment Pin
apferreira25-Jul-03 1:17
apferreira25-Jul-03 1:17 
GeneralThanks Pin
Jm6k25-Jul-03 19:22
Jm6k25-Jul-03 19:22 
Generalrunning applications in VB 6.0 Pin
adnanmadi23-Jul-03 4:36
adnanmadi23-Jul-03 4:36 
GeneralRe: running applications in VB 6.0 Pin
Hesham Amin23-Jul-03 7:24
Hesham Amin23-Jul-03 7:24 
GeneralAccessing an XML sequence Pin
Bernhard Hofmann23-Jul-03 0:28
Bernhard Hofmann23-Jul-03 0:28 
GeneralRe: Accessing an XML sequence Pin
Matt Casto23-Jul-03 3:13
Matt Casto23-Jul-03 3:13 
GeneralCombo Box Pin
rain117822-Jul-03 21:57
rain117822-Jul-03 21:57 
GeneralRe: Combo Box Pin
Nic Rowan24-Jul-03 2:04
Nic Rowan24-Jul-03 2:04 
GeneralExecuting Shell Command Pin
Naqsh22-Jul-03 10:58
sussNaqsh22-Jul-03 10:58 
GeneralRe: Executing Shell Command Pin
Dave Kreskowiak24-Jul-03 7:55
mveDave Kreskowiak24-Jul-03 7:55 
Generalprinting html file Pin
pnpfriend22-Jul-03 8:18
pnpfriend22-Jul-03 8:18 
GeneralRe: printing html file Pin
Ian Darling22-Jul-03 12:53
Ian Darling22-Jul-03 12:53 
GeneralRe: printing html file Pin
pnpfriend23-Jul-03 3:23
pnpfriend23-Jul-03 3:23 
GeneralRe: printing html file Pin
Bo Hunter23-Jul-03 12:20
Bo Hunter23-Jul-03 12:20 
GeneralRe: printing html file Pin
Anonymous27-Aug-03 13:08
Anonymous27-Aug-03 13:08 
GeneralRe: printing html file (correction to previous post)... Pin
Anonymous27-Aug-03 13:18
Anonymous27-Aug-03 13:18 
GeneralRe: printing html file (correction to previous post)... Pin
pnpfriend28-Aug-03 3:15
pnpfriend28-Aug-03 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.