Re: How to use resource file
Double Click the Resource file in the Project Explorer Window. This will open the VB Resource Editor. Look at the Menu Icons; the third from the right is 'Insert Bitmap', click on that and navigate to the file to add.
The VB Resource Editor will add the Bitmap and an ID (eg 101- which you will use to load it later)
Save the Resource file
In your program:
Code:
Picture1.Picture = LoadResPicture(101, vbResBitmap)
Re: How to use resource file
you can try the following way . by default you will not get resource editor . when you click standard.exe .just got to Add in Manager and choose vb6 Resourc Editor.and finally click on Load Behavior frame .Loaded/Unloaded .
Code:
Picture1.Picture = LoadResPicture(101, vbResBitmap)
other alternate way to load same picture .using Inbuild function LoadPicture()
Code:
Picture1.Picture = LoadPicture("C:\Pic1.bmp")