• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

vb6 - load image

Hello there,
I would like to load and image but first make sure that the image is bigger than 10 kb
how can I do this?

Picture1.Picture = LoadPicture(App.Path & "\image.jpg")
1 Solution
  If FileLen(App.Path & "\image.jpg") > 10 * 1024 Then
        Picture1.Picture = LoadPicture(App.Path & "\image.jpg")
    End If

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now