Caption for picture box?

  • Follow


Hello, I'm still pretty new to vb.  I'm working on a program written
by someone else.  When I try to run the program, it gives the error:
"Compile error: Method or data member not found." and points to the
line where the picture box is assigned a caption.  As far as I can
tell, everything else is the same (same method worked in other
programs).  Am I missing something obvious, or is it something else
somewhere in the code?

Thanks.

0
Reply toscalives (29) 2/26/2007 7:52:38 PM

Never mind.  I redid the whole thing.  It works now.  Must have been
something else in the code.

0
Reply toscalives (29) 2/26/2007 8:37:36 PM


In response to the post:
 On 26 Feb 2007 12:37:36 -0800, "Floria_Tosca"
<toscalives@hotmail.com> stated...and I replied:

>Never mind.  I redid the whole thing.  It works now.  Must have been
>something else in the code.

I once spent an entire weekend rewriting a pseudo-conversational (*)
financial caclulator for government projects funding.  It had a
complex array and procedures to fill it...and it didn't work.  I
discovered, after rewriting the entire procedure division (Cobol of
course), the problem was in the size of the buffer of working data
(the passed data).  All I would have had to do is change the number
for the buffer size on one line and the entire program would have
worked...I know because I checked the backups by just changing that
number in the older copy.

The point I'm taking so long to make is, listen to the answers from
this group that are to follow.  You may find an easy way to find the
source of problems like your posted one.  The VB IDE (The development
environment) can help in that resolution, most of the time.  The
Object explorer, right-click menus, auto-complete coding (? whatever
it's called)) and lots of other functions of the IDE can be very
helpfull in discovering problems.  And, knowing these tricks you can
get away with fixing only what is broken, instead of rewriting the
whole thing.

Shell


* Pseudo-Conversational is a Time-Sharing system where a program will
execute for only a short amount of time (Between Transmit and when the
screen is repainted) for each type of program running, and working
data must be "passed" to the next itteration of the program's
"conversation".

0
Reply drshell (102) 2/27/2007 3:58:42 AM

On 26 Feb 2007 11:52:38 -0800, "Floria_Tosca" <toscalives@hotmail.com>
wrote:

>Hello, I'm still pretty new to vb.  I'm working on a program written
>by someone else.  When I try to run the program, it gives the error:
>"Compile error: Method or data member not found." and points to the
>line where the picture box is assigned a caption.  As far as I can
>tell, everything else is the same (same method worked in other
>programs).  Am I missing something obvious, or is it something else
>somewhere in the code?

A Picturebox does not have a Caption Property in VB5 / 6


0
Reply erewhon2 (1042) 2/27/2007 6:10:27 AM

3 Replies
29 Views

(page loaded in 0.081 seconds)

Similiar Articles:









7/27/2012 6:08:14 AM


Reply: