Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PictureBox VB6

Status
Not open for further replies.

R7Dave

Programmer
Oct 31, 2007
181
US
Hello

I have not used VB in the past - my windows programming was using Delphi.

I have inherited an application that was written in a version previous to 6.

We currently have Visual Basic/Visual Studio 6.

The end-user is requesting a small change, but I am receiving an error when creating a new ocx file. (File | Make filename.ocx)

"Compile error: Method or data member not found."

The debugger points to this line of code...
Filed(16).Text=.rsCmdGl("MBrokerNo")

Field(16) is a PictureBox - another developer here explained that in version 6, the picturebox no longer has the text property and that the whole form needs to be rewritten - which he did himself on another ocx.

Would it be possible to open this file with a previous version of Visual Studio and create the ocx?

Does Visual Studio 4 support text property with pictureboxes?

If VS4 is correct, where can I get a copy?

Thanks in advance
Dave


 
Hello again - I am receiving the same error as before

Andy - in your earlier post, you wrote...

"Find and install that component in Windows, then reload the project - repeat until you don't get any errors and be careful when you close the project each time NOT to save the changes."

I wanted to make sure I'm understanding...

"Find and install that component in Windows..."
-> did that with regsvr32 "C:\OCX\TipMcsField.ocx"
"then reload the project..."
-> I open by double clicking the vbp file on my local directory
"repeat until you don't get any errors..."
-> my *.log file lists only one file

Class TIPMCSFIELDLib.TipMcsField of control Field was not a loaded control class.

After I unregister then register TipMcsField.ocx, double click the vbp - are you saing I should close VB and repeat registering and opening VB?

"be careful when you close the project each time NOT to save the changes..."
-> I'm going to try and get a "fresh" copy to rule this out - but I tried creating a new project, after my ocx was registered, Project | Components | Controls TAB | Browse... | Select registered OCX on local drive | Select TipMcsField.ocx | receive message "The file 'C:\OCX\TipMcsField.ocx' was not registerable as an ActiveX Component.

Does using a brand new project rule out the "be careful when you close the project each time NOT to save the changes..." scenario?

Thanks
Dave


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top