BarCtrl Installation.

  1. Copy MSVBVM60.DLL into the system32 dir. If it's already there, skip this step.
  2. Open CMD window in Z:\ExperimentDB\ExpStimMaster\ExpStimMasterReferences
  3. Run "RegSvr32 BarCtrl.ocx". There should be a message: DllRegisterServer in BarCtrl.ocx succeded. This adds registry entries  for the control  (on the current computer).
  4. Open the Access database. The control should be listed in the ActiveX controls and the path to the control should be
    \\Mccoy\KML_root\ExperimentDB\ExpStimMaster\ExpStimMasterReferences
    (the same dir as in the step 2.) Note, that in the references (VBA window) the control is not listed yet.
  5. Add the control to a form. Now it should be listed in the refernces
  6. Here is a sample VB code to access the control programmatically:

Private Sub Form_Load()
    Dim bc As BarCtrl.BarController

    Set bc = BarController0.Object    'BarController0 - the name of the control on the form
    bc.vsAngle = 10
End Sub

 

Reinstallation.

If you want to reinstall the control, do step 2 and then run RegSvr32 /u BarCtrl.ocx - this will unregister the control. Save the name of the control, delete the control from the form, install the control following steps 1-4,  and re-create it under the saved name. Reconnect all control's events in the VB code - the presence of the procedures does not mean that they are being used. Select the control in the object list of the form code and then select one-by-one all event procedures from the methods selector.

 

Troubleshooting.  

Check if the control is listed in the ActiveX conrols. If not, it is not registered on this computer. Register the control.

If arrow keys are not working, reconnect the event procedures as described in the reinstallation section.

If you have the control on a form: check if you can see non-generic properties of the control on its properties page. If all you see are non-specific properties, the registration is screwed. Save the name of the control, delete the control from the form and re-create it under the saved name.