I have a picture box on a form and want to load an image at compile time dependent on client. The image is selected using a compiler contstant.
#If CLIENT = "XXXX" Then
Dim im As Image = Image.FromFile("C:\Dependencies\Logos\ClientLogo.jpg")
Me.pbLogo.Image = im
Me.pbLogo.Size = New Drawing.Size(175,76)
Me.pbLogo.Location = New System.Drawing.Point(37,30)
The problem is that this code, when compiled and deployed, expects the file C:\Dependencies\Logos\ClientLogo.jpg to exist on the target system. How can I use early binding (such as when I right click on the picture box and select choose image) to import the image at compile time?
I am using Visual Studio 2005