When you place a picture ona vb form then change the dpi on your computer after the program is compiled the form changes size but the picuter on the form stays the same and looks out of place and size is worng etc, anyone know of a way to stretch the picture int he form, i dont wnat to use anything in stead of the form (ie piture box image) just need some code, i have looked everywhere for this but found nothing
When you're loading the app, create a DC for the picture and then Blit into the picturebox.
Then if the user changes the resolution, StretchBlt the picture into the picturebox.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Just in case anyone is searching the forums, here's the code for making a borderless picturebox that loads a picture into a device context and uses StretchBlt to blit an image into it etc.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]