How can i select some files programatically on opening of the web browser control.

Posted on 2009-04-19
Last Modified: 2013-12-26
i am ustin PB 8.0.4
my requirement is like this. i have to show a control which should work like microsoft file explorer. where I can see all the files and folders in the specified path. i acheived this by using the olecustom control Microsoft web browser. where by using Navigate i can give any path and i am able to see the content of the path.

but my question is that can i select some files programatically on opening of the web browser control.
please help me.

Question by:xsysys
    LVL 18

    Expert Comment


    im not too sure if this can be achieved using the control.

    Guess ull have to look for another workaround.

    LVL 14

    Accepted Solution

    Here you go.......

    oleobject ole_doc,ole_items
    long ll_count,ll_items

    ole_doc = ole_web.object.document

    ole_items = ole_doc.folder.items()

    ll_items = ole_items.count()

    For ll_count = 0 To ll_items - 1
          If ole_items.item[ll_count].name() = 'file_folder_name' Then
          End If


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now