button focus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pentahari
    New Member
    • Dec 2007
    • 60

    button focus

    In VB6, I have created the form look like the message box. but one problem has occurred that the one button had already focused but the rectangle focus symbol appeared on the focused button. But the msgbox don't have the rectangle focus symbol on the focused button.

    For ex:
    Code:
    MsgBox "Are you sure?", vbYesNo
    The above msgbox automatically focus the yes button but no rectangle symbol.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    please repost clearly.


    i can't understand what is the exact problem.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      You can set default focus button using :

      MsgBox "Are you sure?", vbYesNo + vbDefaultButton 2

      When shown, Second button gets the Focus..

      Regards
      Veena

      Comment

      • pentahari
        New Member
        • Dec 2007
        • 60

        #4
        Originally posted by QVeen72
        Hi,

        You can set default focus button using :

        MsgBox "Are you sure?", vbYesNo + vbDefaultButton 2

        When shown, Second button gets the Focus..

        Regards
        Veena
        Your reply is very useful for my project. sorry to all for the trouble i will repost my question clearly soon.

        Comment

        Working...