Solved

Using a web browser as a file box

Posted on 2014-03-07
6
292 Views
Last Modified: 2014-03-11
Experts, I need to use a web browser to display some files in my project. I have two questions.

1. How can i change the view style at runtime? For example details or small icons.
2. In the attached photo you can see the header of window. How can I get rid of that?
0
Comment
Question by:Basicfarmer
  • 3
6 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39914519
0
 

Author Comment

by:Basicfarmer
ID: 39915012
I want to use the explorer because it suits my needs with virtually no coding. All i need to do is webbrowser1.navigate("\\MyPath\MyFolder"). There will not be any navigation by the user. It will simply display files that are created for specific customer. The folder that it displays will be for that customer file. The only thing i will do is put a back button in the event that the user creates a sub folder. The only thing i want to change about this is allow the user to change the view style. I would like to get rid of the header but if it is not possible then I will live with it.
0
 

Author Comment

by:Basicfarmer
ID: 39919589
I misspoke earlier. The user can already change the view style but i need to change it in code.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 500 total points
ID: 39920670
The views you get when you navigate to a file:/// url are browser specific. IE shows it differently than Chrome which shows it differently than Firefox. Look at the source code of the window and you'll see a lot of browser specific code. The only way to change the "view" is to write a URL handler to intercept the file:/// url and render it using a control of your choice.
0
 

Author Closing Comment

by:Basicfarmer
ID: 39921076
Thanks for the feedback, this is something i can work with.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

744 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

10 Experts available now in Live!

Get 1:1 Help Now