juicebox360 Posted August 7, 2008 Author Share Posted August 7, 2008 Argh. I can't get this…. :confused:I wonder how you set a picture property to an Image?As in...```'In the form's Load event procedure, load these variables with the control properties:Private Sub Form_Load() Image1.Picture = C \ Users \ Pickles \ Desktop \ u1.bmp End Sub```The compiler merely returns the error 11 "division by zero" and highlights Image1.Picture = C \ Users \ Pickles \ Desktop \ u1.bmpand when I place my mouse over the yellow highlighted text it gives me somewhat of a ToolTipText that displays the value "-1174074972".EDIT: SOLVED! I had to utilize the Resource Editor (that one green cube thing). Then I had to call up the resource file (the bitmap) by using the function ```LoadResPicture(index, format)```[the index is just an ID assigned to the bitmap (or any other imported resource) when it is uploaded to the project] and also use the predefined constant ```vbResBitmap```and from there on I also made it possible to open a new form.Thanks for helping everyone! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now