Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cicling.. button in form (6.0)

    is possible to cicling all command button in a form with this function:

    Private Sub Form_Load()
    RegisterButton Command1, &HFF0000
    End Sub

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: cicling.. button in form (6.0)

    Try the following:

    Private Sub Form_Load()
    Dim ctl As Control
    For Each ctl In Me.Controls
    If TypeOf ctl Is CommandButton Then
    RegisterButton ctl, &HFF0000
    End If
    Next ctl
    Set ctl = Nothing
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •