matt09524 Posted October 18, 2005 Posted October 18, 2005 In ADO, the path to the database has to be exact be it in varible format or "C:\whatever\whatever.mdb". I was wondering if picture boxes are the same. Do I need to define in code where the image is "application.startuppath" or does the elipses use the app startup path? Quote
Nate Bross Posted October 18, 2005 Posted October 18, 2005 'this should default to the directory the application is in PictureBox1.Image = New Bitmap("MyBitmap.bmp") 'if it doesn't work use this little function Public Function AppPath() As String Return System.AppDomain.CurrentDomain.BaseDirectory() End Function Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Leaders snarfblam Posted October 19, 2005 Leaders Posted October 19, 2005 If I were you then I would change the .bmp to .png. Regardless of the image format, you still use the same Bitmap constructor and the behavior is the same. Quote [sIGPIC]e[/sIGPIC]
matt09524 Posted October 26, 2005 Author Posted October 26, 2005 So, mbpic.Image = New Bitmap("mb.png") should work? I won't knwo for sure until I deploy the app and that won't be for a bit. Quote
Leaders snarfblam Posted October 26, 2005 Leaders Posted October 26, 2005 Or, you could just write some code and create a PNG and test it on your machine. Quote [sIGPIC]e[/sIGPIC]
matt09524 Posted October 26, 2005 Author Posted October 26, 2005 ... Yes. I could :) Being lazy is a curse I carry around in life. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.