Results 1 to 2 of 2

Thread: Resource Files?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    FeedMeTown, Ohio
    Posts
    176

    Question

    Can anyone tell me how to create a resource file and incorporate into a VB5 application? I have several bitmaps that I would like to enclose within 1 file. Thanks.

  2. #2
    Guest
    Use the Resource Compiler to make resource files. The documentation and the compiler are found in your Tools folder under the following path Tools\Rc\. To use them in your App, you must use the LoadResPicture function.

    For example, put the following into your resource script.
    Code:
    200 CUSTOM PRELOAD mybmp.bmp
    Now compile the script and the newly created resource file to your project.

    Insert the following code into a Form with a PictureBox and a CommandButton.
    Code:
    Private Sub Command1_Click()
        'Load the resource into Picture1
        Set Picture1.Picture = LoadResPicture(200, vbResBitmap)
    End Sub


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width