Print Search Rate
    
   08-12-2004, 9:41 AM
HOWTO: Hosting a Usercontrol in a Band

For a Usercontrol try using the following:

Private Sub Form_Load()
   ActiveBar.Bands("Band3").Tools("Tool5").hWnd = UserControl11.hWnd ActiveBar.RecalcLayout
End Sub

For the Usercontrol you will need to create a handle:

Public Property Get hWnd() As Long
   hWnd = UserControl.hWnd
End Property

To access the tool properties make sure you reference the Band that the tool is on as well:

abDDWordPad.Bands("sb").Tools("miCol").Caption = "Status"
abDDWordPad.ReCalcLayout


Jennifer-DD
GrapeCity » Frequently Aske... » ActiveBar FAQ » HOWTO: Hosting a Usercontrol in a Band
Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.