VB Code:
  1. Option Explicit
  2.  
  3. Dim WithEvents vbLink As EventVB.APIFunctions
  4. Dim WithEvents vbWnd As EventVB.ApiWindow
  5.  
  6. Private Sub Form_Load()
  7.  
  8. Set vbLink = New APIFunctions
  9.  
  10. Set vbWnd = New ApiWindow
  11. With vbWnd
  12.     .hWnd = Me.hWnd
  13.     .ScrollBars = vbBoth
  14.     .AutoScroll = True
  15. End With
  16.  
  17. vbLink.SubclassedWindows.Add vbWnd
  18.  
  19. End Sub