Discussion:
VB Problem with Picture Box Control
(too old to reply)
Dan Shelby
2003-08-18 03:34:44 UTC
Permalink
Hi. I wrote a vb program several years ago which includes several picture
box controls. When I try to run the program (from VB) now I get an error
"compile error -- method or data member not found". The code that bombs out
is anixxx.value = 1. Based on the name of the object, ani??? I immediately
assumed that this was an animated object; however, upon closer examination,
I found it to be a picture-box data object. Also, in checking it out, I
found that 'value' is not a valid attribute of a picture box object.
Because of this, I am totally confused. First of all, I have an executable
of this program that runs fine. I must have written this circa 1995 so it
must have been compiled with VB4 or so. My copy of VB4 doesn't include
'value' as an attribute of a picture box object. Please let me know if you
have any ideas on this. I am even wondering if adding the file ani.vbx
would somehow add the 'value' attribute to a picture box object. Also not
sure as to how to add ani.vbx to my system. Help would be appreciated.
Thanks. One other note -- when I try to input the files to VB4 I get an
error message indicating that the file(s) are corrupt. When I input them to
VB6 I get the error which tells me that they must have been written later
than VB4.
Adrian
2003-08-18 18:13:13 UTC
Permalink
Sounds like you've got a missing OCX and when VB can't find the OCX for a
certain component it defaults it to a picturebox, this is why you are
getting the error. Maybe you are opening only a form so the component is
not being registered with the current project. Try opening the project file
or searching the web for the missing OCX and then replacing the picturebox
control with the 'ani' control.
Post by Dan Shelby
Hi. I wrote a vb program several years ago which includes several picture
box controls. When I try to run the program (from VB) now I get an error
"compile error -- method or data member not found". The code that bombs out
is anixxx.value = 1. Based on the name of the object, ani??? I immediately
assumed that this was an animated object; however, upon closer
examination,
Post by Dan Shelby
I found it to be a picture-box data object. Also, in checking it out, I
found that 'value' is not a valid attribute of a picture box object.
Because of this, I am totally confused. First of all, I have an executable
of this program that runs fine. I must have written this circa 1995 so it
must have been compiled with VB4 or so. My copy of VB4 doesn't include
'value' as an attribute of a picture box object. Please let me know if you
have any ideas on this. I am even wondering if adding the file ani.vbx
would somehow add the 'value' attribute to a picture box object. Also not
sure as to how to add ani.vbx to my system. Help would be appreciated.
Thanks. One other note -- when I try to input the files to VB4 I get an
error message indicating that the file(s) are corrupt. When I input them to
VB6 I get the error which tells me that they must have been written later
than VB4.
Continue reading on narkive:
Loading...