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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6.0 and Accpac OCX UI 1

Status
Not open for further replies.

vbdbcoder

Programmer
Nov 23, 2006
247
US
I have VB 6 windows form with a custom button added as “Print//Post” button, to work with a/p payment ocx, to replace the native post button of the A/P payment. That custom button will do the additional tasks requirement, prior to posting the batch.

When the form is launched, everything looks okay. The added custom button falls to the correct spot to place on top of the original post button, and the menu of the OCX on the form shows.

When clicking on the custom button, the menu of the OCX on the form disappears.

After the custom button is clicked and the additional function gets accomplished, and the OCX gets focus again, the menu of the OCX appears and all the buttons move up.
 
Add a menu to your form. It only has to contain a single option. Otherwise the OCX moves up to occupy that space and then moves back down when it has to display it's own menu.

You can also set the .SetMacroVisible property of the original print button to False to make sure that a user doesn't accidentally invoke it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top