Click here to Skip to main content
15,902,198 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Do these produce different results? "Dim buffer() as Byte" and "Dim buffer as Byte()" Pin
Dave Kreskowiak18-Jun-04 12:53
mveDave Kreskowiak18-Jun-04 12:53 
GeneralRe: Do these produce different results? "Dim buffer() as Byte" and "Dim buffer as Byte()" Pin
anotheruser18-Jun-04 13:06
anotheruser18-Jun-04 13:06 
GeneralWindows Explorer Type TreeView Pin
Brad Fackrell18-Jun-04 10:09
Brad Fackrell18-Jun-04 10:09 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2819-Jun-04 10:10
tanstaafl2819-Jun-04 10:10 
GeneralRe: Windows Explorer Type TreeView Pin
Brad Fackrell21-Jun-04 5:21
Brad Fackrell21-Jun-04 5:21 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2821-Jun-04 8:31
tanstaafl2821-Jun-04 8:31 
GeneralRe: Windows Explorer Type TreeView Pin
Brad Fackrell21-Jun-04 8:39
Brad Fackrell21-Jun-04 8:39 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2821-Jun-04 9:07
tanstaafl2821-Jun-04 9:07 
I did find some interesting stuff, but I don't know how related it is to exactly what you are looking to do. You may find that ASP has as much to do with the solution as VB.NET. You may be able to reverse engineer something like this to get what you need:

Dim sPath, ot, oFSO, sFolderName, i, iNode<br />
	<br />
	<br />
	' Get Folder Path and Folder Name.<br />
	<br />
	sPath = Server.MapPath(Request.ServerVariables("Path_INFO"))<br />
	Do Until Right(sPath, 1) = "\"<br />
		sPath = Left(sPath, Len(sPath) - 1)<br />
	Loop<br />
	i = Len(sPath) - 1<br />
	Do Until Mid(sPath, i, 1) = "\"<br />
		sFolderName = Mid(sPath, i, Len(sPath) - i)<br />
		i = i - 1<br />
	Loop<br />
	' You can set path and folder name like this:<br />
	' sPath = "C:\Inetpub\wwwroot\obout\treeview\AspTreeView\"<br />
	' sFolderName = "AspTreeView"<br />
	<br />
	' Create objects.<br />
	<br />
	Set oFSO = CreateObject("Scripting.FileSystemObject")<br />
	Set ot = Server.CreateObject("obout_aspTreeview_Pro.tree")<br />
	<br />
	' Populate first node manually. In Classic first node is "root".<br />
	ot.Add "", "root", " 0, 0, 128, 1)">" & sFolderName & "", True, "book.gif" <br />
	<br />
	' Show folders and files.<br />
	Call AddFolder(sPath, "../" & Escape(sFolderName), "root")<br />
	<br />
	' Write treeview to page.<br />
	Response.Write ot.HTML<br />
	Set ot = Nothing <br />
	Set oFSO = Nothing<br />
<br />
<br />
	<br />
Function AddFolder(pth, dpt, parentID)<br />
	Dim oF, oFolder, oFile, oSubFolder, oItem<br />
<br />
	Set oFolder = oFSO.GetFolder(pth)<br />
	Set oSubFolder = oFolder.SubFolders<br />
	Set oFile = oFolder.Files<br />
	<br />
	' Display Subfolders.<br />
	For Each oItem In oSubFolder <br />
		iNode = iNode + 1<br />
		ot.Add parentID, "z" & iNode, "<span onclick='ob_os(this)'> " & oItem.Name & "</span>"<br />
		Call AddFolder(oItem.Path, dpt & "/" & Escape(oItem.Name), "z" & iNode)<br />
	Next<br />
	<br />
	' Display Files.<br />
	For Each oF In oFile<br />
		iNode = iNode + 1<br />
		ot.Add parentID, "z" & iNode, " <a href=" & dpt & "/" & Escape(oF.Name) & ">" & oF.Name & "</a>", , "page.gif" <br />
	Next<br />
End Function<br />


http://www.obout.com/obout/treeview/asptreeview/explorer.asp

Some other promising links:

Explorer shell extension software downloads

http://www.brightdownloads.com/software/6531.htm

Still coaxing software out of the can after all these years...
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2821-Jun-04 9:14
tanstaafl2821-Jun-04 9:14 
GeneralRe: Windows Explorer Type TreeView Pin
Brad Fackrell21-Jun-04 9:43
Brad Fackrell21-Jun-04 9:43 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2821-Jun-04 12:20
tanstaafl2821-Jun-04 12:20 
GeneralRe: Windows Explorer Type TreeView Pin
Brad Fackrell21-Jun-04 13:00
Brad Fackrell21-Jun-04 13:00 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2822-Jun-04 4:06
tanstaafl2822-Jun-04 4:06 
GeneralRe: Windows Explorer Type TreeView Pin
Brad Fackrell22-Jun-04 4:34
Brad Fackrell22-Jun-04 4:34 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2822-Jun-04 9:25
tanstaafl2822-Jun-04 9:25 
GeneralRe: Windows Explorer Type TreeView Pin
Brad Fackrell22-Jun-04 9:37
Brad Fackrell22-Jun-04 9:37 
GeneralRe: Windows Explorer Type TreeView Pin
tanstaafl2822-Jun-04 10:42
tanstaafl2822-Jun-04 10:42 
GeneralTrying an Excel Interop Pin
tanstaafl2818-Jun-04 7:57
tanstaafl2818-Jun-04 7:57 
GeneralRe: Trying an Excel Interop Pin
tanstaafl2818-Jun-04 8:18
tanstaafl2818-Jun-04 8:18 
GeneralRe: Trying an Excel Interop Pin
Dave Kreskowiak18-Jun-04 8:34
mveDave Kreskowiak18-Jun-04 8:34 
GeneralRe: Trying an Excel Interop Pin
tanstaafl2818-Jun-04 9:05
tanstaafl2818-Jun-04 9:05 
GeneralRe: Trying an Excel Interop Pin
Dave Kreskowiak18-Jun-04 9:06
mveDave Kreskowiak18-Jun-04 9:06 
GeneralRe: Trying an Excel Interop Pin
tanstaafl2818-Jun-04 9:09
tanstaafl2818-Jun-04 9:09 
GeneralRe: Trying an Excel Interop Pin
tanstaafl2819-Jun-04 7:23
tanstaafl2819-Jun-04 7:23 
Generallong hyperlink for shellexecute with mailto Pin
skoizumi2911018-Jun-04 7:18
sussskoizumi2911018-Jun-04 7:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.