A
Anthony P.
Hello Everyone,
In my form_load() method, I have the following code:
sPath = System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly().GetName
().CodeBase())
PictureBox1.Image = New System.Drawing.Bitmap(sPath & "\data\pic-
logo.gif")
Pretty simple code that is supposed to load the pic-logo.gif stored in
the Application's directory\data into a picture box on the form.
So, let's say my sPath is set to C:\MyDirectory. So, the pic should be
pulled from C:\MyDirectory\data\pic-logo.gif, right? Nope!
For some reason, the system is placing \ in front of the path name.
So, my call is actually coming out as \C:\MyDirectory\Data\pic-
logo.gif.
I've even tried hard coding the path into the call and it STILL is
putting a \ in front of the path.
Any idea what might be going on here?
Thank You!
Anthony
In my form_load() method, I have the following code:
sPath = System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly().GetName
().CodeBase())
PictureBox1.Image = New System.Drawing.Bitmap(sPath & "\data\pic-
logo.gif")
Pretty simple code that is supposed to load the pic-logo.gif stored in
the Application's directory\data into a picture box on the form.
So, let's say my sPath is set to C:\MyDirectory. So, the pic should be
pulled from C:\MyDirectory\data\pic-logo.gif, right? Nope!
For some reason, the system is placing \ in front of the path name.
So, my call is actually coming out as \C:\MyDirectory\Data\pic-
logo.gif.
I've even tried hard coding the path into the call and it STILL is
putting a \ in front of the path.
Any idea what might be going on here?
Thank You!
Anthony