-
I'm using a resource file to supply my buttons and formbackgrounds with an image.
I could do it the hard way and hardcode each button with the image which creates a way to big file :/ or use a resource file..
But now I get this nice error that it can't find the resource ID...
I created 2 custom id's.. (2 JPG files) now called 101 and 102 (I first called 'm BackGRND and Button but that didn't help)
I use this code to call 'm:
frmMain.Picture = LoadResPicture(101, vbResBitmap)
But thus it came with a error that it can't find "101"!
Can someone give me the clue to get this working?
-
I don't know how you extract a jpg from a resource file, I'm sure someone here does though.
However, a quick fix for your problem would be to save your jpg's as bitmaps and put them in the resource file instead. Then use the exact same code to set the picture on the button. That'll work..
-
And would take about 800Kb more room.
No thanx.
-
-