Results 1 to 5 of 5

Thread: Get caption of a button

  1. #1
    rsitogp
    Guest

    Get caption of a button

    How can I get a caption of a button?
    i.e.
    msgbox WebBrowser1.Document.Forms(6).submit.value

    Thanks in advance!

  2. #2
    Lively Member
    Join Date
    Apr 2001
    Location
    England
    Posts
    69

    Talking

    I don't know exactly what you want, but to display the caption of a command button in a message box, type:

    MsgBox Command1.Caption


    This is assuming that the button is called Command1

    Martin
    (UK)

  3. #3
    rsitogp
    Guest
    I know that!
    I mean in a webbrowser!
    I.E. msgbox WebBrowser1.Document.Forms(6).submit.caption ?

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    The caption of any button is it's value so access the value property not caption.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  5. #5
    rsitogp
    Guest
    Thanks, I succeded that one on my own (oh, I'm so proud!).

Posting Permissions

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



Click Here to Expand Forum to Full Width