Visual Basic 6.0 translation

Monday, September 15, 2014

VB6 Crystal Reports 4.6 Error : Method 'Action' of object 'CrystalCtrl' Failed

Visual Basic 6

Crystal Reports 4.6 

Method 'Action' of object 'CrystalCtrl' Failed


Error description 

I get an error Method 'Action' of object 'CrystalCtrl' Failed when I attempt to execute the code :
CrystalReport1.Action = 1


Installing new version of Crystal Reports (I.e Crystal Reports for Visual Basic 11)

Error message

Method 'Action' of object 'CrystalCtrl' Failed


Open Visual Basic 6 project that causes the problem
Add-In -> Report Designer
Create a new Crystal Report file (I.e CrystalRep.rpt)
Re-try your code with the new Report file (CrystalRep.rpt)

Briefly :

You will need to re-create all your reports in VB6 using Crystal Reports 4.6 to solve this problem.


Error description 

I get an error "Crystl32.ocx" Could Not Be Loaded when I attempt to open VB6 Project on Win7 32 or Win7 64 :
Crysl32.Ocx Could Not Be Loaded


Missing files from Windows7 32 or Windows7 64.

Error message

Crystl32.ocx" Could Not Be Loaded


Search for those files [CRPE32.DLL  ,  IMPLODE.DLL] make sure they are present in the same folder as Crystl32.Ocx file [I.e C:\windows\system32 (for 64 bit programs) and C:\Windows\SysWOW64 (for 32 bit programs) or C:\Windows\System32 (for 32 bit)], then register Crystl32.Ocx file using [Start->Run-> regsvr32.exe "C:\Windows\System32\crystl32.ocx"].

Sunday, May 26, 2013

Visual Basic Online Course - Controls move slowley on Win7-32, 64

Visual Basic 6 for Windows 7

VB6 on Win7
VB6 on Win7
Problem :
When Working with Visual Basic 6.0 on Win7-32 or Win7-64, the controls [TextBox, Labels, CommandButton ..... etc] placed on the vb 6.0 Form [VB6 IDE]  move slowly.
Solution :
Go to Visual Basic 6.0 main path (Microsoft Visual Studio on Main Partition), commonly is : C:\Program Files\Microsoft Visual Studio\VB98\
Locate VB6.exe and Right-Click on it. Make sure you have the full privileges (Computer Administrator), choose Properties
Visual Basic 6.0 on Windows 7 Problems
VB6 Controls move slowly on Win7
Navigate to Compatibility section, and mark / activate the option (Run this program in compatibility mode for:) and then from the drop-down menu choose Windows XP (Service Pack3), also below in the settings section mark / activate the option Disable desktop composition.
Visual Basic 6.0 Controls move slow on Win7
Click OK and test your Visual Basic 6.0 IDE, place some controls on a VB6 Form, try to move those controls, you notice that the controls are no longer move slowly. Also, make sure you are Win7 computer admin before applying these options.
Thank you for reading

Please watch the video if there is anything you did not understand .

Win7-32bit and Win7-64bit problem with Visual Basic 6.0. The controls move slow motion on the IDE Form.
Possible pop up message by Windows 7 :
Visual Basic 6.0 on Windows 7
 The color schema has been changed to Windows 7 Basic
A running program isn't compatible with certain visual elements of Windows. Click here for more information.
Nothing to worry about here, the popped up message with close and Visual Basic 6.0 will work fine, and then when you exit Visual Basic 6.0 on Window7, the color schema will return to the default as before without any problems.

Problem :
Run-time error '70':
Permission denied
Causes : An attempt was made to write to a write-protected disk or to access a locked file. This error has the following causes and solutions: Solution for WinXP :
(C) You tried to open a write-protected file for sequential Output or Append. (S) Open the file for Input or change the write-protection attribute of the file.
(C) You tried to open a file on a disk that is write-protected for sequential Output or Append. (S) Remove the write-protection device from the disk or open the file for Input.
(C) You tried to write to a file that another process locked. (S) Wait to open the file until the other process releases it. 
(C) You attempted to access the registry, but your user permissions don't include this type of registry access. (S) On a 32-bit Microsoft Windows systems, a user must have the correct permissions for access to the system registry. Change your permissions or have them changed by the system administrator, as for Win7, see solution below ...
Solution for Win7 :
Set Windows7 UAC [User Account Control] to [No Notifications] or just configureVB6.exe security for the Win7 current user to Full Control.

Monday, April 8, 2013

Visual Basic Online Course - Create a Phone Book

Visual Basic Help - Phone-Book
Microsoft Visual Basic 6.0 help and Tutorials
MS-Visual Basic 6.0 and MS-Access 2003 - Crystal Reports to create a desktop software professionally

Index .../
(1) Visual Basic 6.0 project design and controls

(2) MS-Access 2003 Database design

(3) Visual Basic 6.0 codes for design

(4) How does it work ?

(5) Visual Basic 6.0 code for MS-Access 2003

(6) Crystal Reports 4.6 for Visual Basic 6.0

(7) Building the desktop application

(8) Packing and Deploying the project

(9) Testing the Phone-Book application

(1) Visual Basic 6.0 project design & controls

  • Create a new folder on your desktop, name it (PhoneBook).
  • Open your Visual Basic 6.0, create new (Windows Applicatio).
  • Save As .... your project in your (PhoneBook) folder on Desktop with the name (MyPhoneBook), or before saving, from (Project) , (Project Properties) , (General Tab) , (Project Title : MyPhoneBook) then from (Make Tab) , (Application Title : MyPhoneBook) then click (OK).

  • Save As .... your [Form1] from (Project Panel) in the same folder with the name (MainFrm), and go to the (Properties Panel) and change the Name property of the Form1 to (MainFrm). Close your project.

Your folder (PhoneBook) now should look like this
Folder (PhoneBook)
Now re-open the project and follow the following photo with notes on the design :
[MainFrm] form with controls placed on it, see the notes below.

Notes - numbers mark on the photo represent the following controls :
(1) Icon of the project : Created using VC++ and it is 32x32 Pixels, you will find it in the source code of the project in the end of the tutorial. We set the Icon of the project using the Main Form's Icon, from its [Icon] property, after putting the Icon file (Phone.Ico) in the main project folder (PhoneBook), Or we can set the form's Icon using this code :

Microsoft visual basic help

Visual Basic Online Course

vb6 (63) Application Development (45) Visual Basic Online Course (45) Online Visual Basic Course (44) Visual Basic Help (44) Visual Basic Programming (42) IT Jobs (39) VB6 developer (38) Visual Basic Course (38) Visual Basic 6.0 (26) Microsoft Visual Basic 6.0 (25) VB6.0 (24) Visual Basic Programmers (24) vb 6.0 (24) visual basic programming tutorial (19) Third lesson (16) Source code download for Visual Basic 6.0 (14) Source code for Visual Basic 6.0 (10) visual basic tutorial (9) Visual Basic 6 (5) Visual Basic Courses (5) Lesson 3 (4) VB 0.6 - TreeView control (4) VB 0.6 With TreeView Control (4) VB6 Course (3) Create ActiveX (2) How to automate MS-Access from Visual Basic 6.0 (2) Add controls at runtime (1) Back up your Database (1) Change ActiveX icon (1) Change screen resolution (1) Create FTP (1) Crystal Reports 4.6 (1) Crystl32.ocx could not be loaded (1) DataGrid Columns re-size (1) Date Calculation (1) DateAdd Function (1) DateDiff function (1) FTP (1) Marquee Title Bar (1) Marquee VB 6.0 TitleBar (1) Method 'Action' of object 'CrystalCtrl' Failed (1) Microsoft Access with Visual Basic 6.0 (1) OpenSchema method (1) Save File Using CommonDilog (1) Track Database path (1) VB 0.6 - Registry (1) VB 0.6 With Registry Editor (1) VB 6.0 Access (1) VB 6.0 OOP (1) VB6 Access2003 ADO Like % (1) VB6 Add Date (1) VB6 Add Time (1) VB6 Date calculation (1) VB6 Subtract Date (1) Visual Basic Remote (1) Win7 (1) Windows7 (1) ms access networking details (1) remote Visual Basic DB (1) rounded and transparent forms (1) vb 0.6 style (1) vb 6.0 Remote Database (1)