In Webbrowser1 ctrl how to set the name of selected file to a variable.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: In Webbrowser1 ctrl how to set the name of selected file to a variable.

  1. #1
    Join Date
    Jan 2013
    Posts
    23

    Thumbs up In Webbrowser1 ctrl how to set the name of selected file to a variable.

    Hi all,

    I have a webbrowser1 ctrl, on that i have some 10 files, i select one file and click on button1, then the selected file name along with url shld be shown in the string variable.

    Can any 1 tell me how to do it?

    Regards
    Seema

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,982

    Re: In Webbrowser1 ctrl how to set the name of selected file to a variable.

    Show the code that displays the file chosen, to expose the property that you want to copy, and we'll try to help
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jan 2013
    Posts
    23

    Re: In Webbrowser1 ctrl how to set the name of selected file to a variable.

    Hi,

    Even i am trying for the same, i tried out with the following code. the code wich can save the url + the file name, but its not working, Help me David if u can. Please

    Code:
      
    Dim x = WebBrowser1.Document.ActiveElement

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center