473,795 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change to Classic Folders view from ActiveX control

I am using the WebBrowser control (Explorer.Shell .2) from within a VBA
application, embedded on an MS Access form to display the contents of a
local folder. By default on Windows 2000/XP the control displays the
"Common Tasks" section on the left-hand side of the display - I assume it
just shows/hides this based upon the Windows user's settings. Is there any
way to change this to "Classic View", ie to remove the left-side "Common
Tasks" display?

As a part of the WebBrowser's automation object (ShellFolderVie w), I can see
there is an enumeration called "ViewOption s", and of this enumeration's
constants is named SFVVO_WIN95CLAS SIC, but this is just a read-only
property.

I've looked at various API calls and interfaces to try to do this, but I
can't find anything suitable. I know that I could achieve similar
functionality by implementing something with the standard ListView, but this
would take far too long for what I want to do. The WebBrowser control works
fine and has a low memory footprint considering it actually is
Internet/Windows Explorer, but I just want to hide the left-side pane.

I am open to any suggestions!

Thanks,
Tony Meier
Nov 13 '05 #1
2 3763
I don't know about the API for that but if you're
hosting the folder window you should have access
to the DOM of the folder.htt. In WinXP folder.htt is locked
in a DLL but you should be able to read it by retrieving
the source of the document in the WB window.

Example: In the Win98 folder.htt the left side is a
<DIV> with ID of "Panel" and the listview has an
ID of "FileList". There are style settings in
the page head, including:

#Panel {position: absolute; width: 30%; height: 100%; overflow: auto}
#FileList {position: absolute; left: 30%; width: 70%; height: 100%}

So it seems that you ought to be able to use DHTML after
the folder/page loads to resize the "Panel" DIV to width of 0
and/or change its visibility. Maybe something like:
WB.Document.par entWindow.Panel .Style.width = 0
WB.Document.par entWindow.FileL ist.Style.width = 100%

(WB.Document.Sc ript.window also gets you the document
parent window. I don't know what the official method is. )

--
--
Tony Meier <tm****@gmail.c om> wrote in message
news:cl******** ***********@new s.demon.co.uk.. .
I am using the WebBrowser control (Explorer.Shell .2) from within a VBA
application, embedded on an MS Access form to display the contents of a
local folder. By default on Windows 2000/XP the control displays the
"Common Tasks" section on the left-hand side of the display - I assume it
just shows/hides this based upon the Windows user's settings. Is there any way to change this to "Classic View", ie to remove the left-side "Common
Tasks" display?

As a part of the WebBrowser's automation object (ShellFolderVie w), I can see there is an enumeration called "ViewOption s", and of this enumeration's
constants is named SFVVO_WIN95CLAS SIC, but this is just a read-only
property.

I've looked at various API calls and interfaces to try to do this, but I
can't find anything suitable. I know that I could achieve similar
functionality by implementing something with the standard ListView, but this would take far too long for what I want to do. The WebBrowser control works fine and has a low memory footprint considering it actually is
Internet/Windows Explorer, but I just want to hide the left-side pane.

I am open to any suggestions!

Thanks,
Tony Meier

Nov 13 '05 #2
Thanks for the idea mayayana. I am currently testing out this approach and
I will post back here later today and give a solution if I ever find it!

Regards,
Tony

"mayayana" <ma**********@m indYYspring.com > wrote in message
news:4y******** *********@newsr ead3.news.atl.e arthlink.net...
I don't know about the API for that but if you're
hosting the folder window you should have access
to the DOM of the folder.htt. In WinXP folder.htt is locked
in a DLL but you should be able to read it by retrieving
the source of the document in the WB window.

Example: In the Win98 folder.htt the left side is a
<DIV> with ID of "Panel" and the listview has an
ID of "FileList". There are style settings in
the page head, including:

#Panel {position: absolute; width: 30%; height: 100%; overflow: auto}
#FileList {position: absolute; left: 30%; width: 70%; height: 100%}

So it seems that you ought to be able to use DHTML after
the folder/page loads to resize the "Panel" DIV to width of 0
and/or change its visibility. Maybe something like:
WB.Document.par entWindow.Panel .Style.width = 0
WB.Document.par entWindow.FileL ist.Style.width = 100%

(WB.Document.Sc ript.window also gets you the document
parent window. I don't know what the official method is. )

--
--
Tony Meier <tm****@gmail.c om> wrote in message
news:cl******** ***********@new s.demon.co.uk.. .
I am using the WebBrowser control (Explorer.Shell .2) from within a VBA
application, embedded on an MS Access form to display the contents of a
local folder. By default on Windows 2000/XP the control displays the
"Common Tasks" section on the left-hand side of the display - I assume it
just shows/hides this based upon the Windows user's settings. Is there

any
way to change this to "Classic View", ie to remove the left-side "Common
Tasks" display?

As a part of the WebBrowser's automation object (ShellFolderVie w), I can

see
there is an enumeration called "ViewOption s", and of this enumeration's
constants is named SFVVO_WIN95CLAS SIC, but this is just a read-only
property.

I've looked at various API calls and interfaces to try to do this, but I
can't find anything suitable. I know that I could achieve similar
functionality by implementing something with the standard ListView, but

this
would take far too long for what I want to do. The WebBrowser control

works
fine and has a low memory footprint considering it actually is
Internet/Windows Explorer, but I just want to hide the left-side pane.

I am open to any suggestions!

Thanks,
Tony Meier


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6104
by: Karuppasamy | last post by:
Hi I want to populate all the files and folders of System in a Treeview control like Windows Explorer. I try this using File System Objects. But sometimes I am getting an error like 'Access Denied". Why am I getting an error like this? How to populate the TreeView with Folders and files of the System?
2
7577
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run the VB program on that same machine, I can view the ActiveX control fine. He is using Citrix. The same ActiveX controls can be viewed on other machines. When trying to view 1 of the ActiveX control, he got an error "Visual Basic Run-time redist...
3
1917
by: Web Webon | last post by:
Hi everybody! I wonder if this is possible? I need to determine if a client is using "windows classic folders" or anything else. If I instantiate a Shell ActiveX object is there a way of obtaining this information from javascript? (I know that the user will get prompted about allowing such an operation, but I am willing to live with this). Because of the way one of my pages work, I need to know this information in order to "cover up"...
1
4176
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view control in access 2002. Prior to that I like to fine some information or here some feed back from developers who have use active x controls success fully in there application, what their experience was.
3
3123
by: ACaunter | last post by:
Hi all, Does anyone know how to view DICOM images (.dcm) in a picturebox/imagebox in asp.net. dicom are medical images which cannot be altered, but you should still be able to view them, maybe by setting a reference to it... does anyone have any ideas??? thanks -- AdamPC@hotmail.com
3
2171
by: Brian Henry | last post by:
How would you go about doing this I have a tree view which where anything is a parent it is a folder (folder icon, and the tag for the object is a string that says "FOLDER:{name of folder here}") then each folder has items in it and possibly more folders. The root node also has items on it that are not folders... but default sorting sorts by name, so folders do not show up on top. pretty much anything that has children are to show on top...
9
2131
by: Charles Law | last post by:
Hi chaps I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of a prompt response, and I figure that the guys here probably came from vb classic anyway. So, apology over .... I have an application in vb6, and I want to install it on a system that has never seen the vb development environment, or any of the...
2
2065
by: Phaiz | last post by:
Not sure if you'd need an activex control but I'm looking for a script to change the folder view to "Classic View" within IE. I have an iframe that loads the users My Documents folder and would like it to display in 'Classic View' as opposed to the default 'Crap View' with the common tasks pane on the left-hand side. I'm very retarded with JS so please understand. Thanks
1
2967
by: =?Utf-8?B?UHJhZGVlcCBFYXJsYQ==?= | last post by:
Hi I am having one windows application on my local machine and I want to display the folders(shared folders) of remote machine in tree view control of my win application. I haved added me as administartor in that remote machine. The following is my requirement. 1)The Application should show a tree view and a list view. 2) Tree view should show the folder structure and List view should list the
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.