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

    transform userform in VB classic (2000 sr-1)

    Possible to transform this userform in Vb classic, with mousover and title of button in header of form?
    Tks.

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

    Re: transform userform in VB classic (2000 sr-1)

    It should be possible in VB6 too, usung the same method (a class module).

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: transform userform in VB classic (2000 sr-1)

    Private Sub CommandButtonGroup_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single
    higlight this line... and have error

    My work:
    imported in vb the form and class module

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

    Re: transform userform in VB classic (2000 sr-1)

    There should be a closing parenthesis ) at the end of the line.

    What does the error message say?

  5. #5
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: transform userform in VB classic (2000 sr-1)

    parenteshis, ok...
    Type mismatch error 13

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

    Re: transform userform in VB classic (2000 sr-1)

    Which word is highlighted?

  7. #7
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: transform userform in VB classic (2000 sr-1)

    Set Buttons(Count).CommandButtonGroup = Ctrl
    complete code attached

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

    Re: transform userform in VB classic (2000 sr-1)

    You wrote that the MouseMove line caused the error, now it's a completely different one.

    Since I don't have VB6, I cannot test this, so I hope someone else can help.

  9. #9
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: transform userform in VB classic (2000 sr-1)

    no prob.... tks always.

  10. #10
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: transform userform in VB classic (2000 sr-1)

    Does it help if you change the declaration to:
    <code>Public WithEvents CommandButtonGroup As VB.CommandButton</code> ?
    Regards,
    Rory

    Microsoft MVP - Excel

  11. #11
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: transform userform in VB classic (2000 sr-1)

    HUMMMMM.... same error
    attached new project with your modify.
    In other caseremeber other way are welcome:-)

  12. #12
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: transform userform in VB classic (2000 sr-1)

    I'm afraid I'm not in front of VB6 now either, but what if you try:
    <code>Public WithEvents CommandButtonGroup As MSForms.CommandButton</code> ?
    Regards,
    Rory

    Microsoft MVP - Excel

  13. #13
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: transform userform in VB classic (2000 sr-1)

    error: Type not deffrom user

Posting Permissions

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