Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Help Favorites

Reply
 
Old 04-06-2008   #1 (permalink)
SurturZ


 
 

Help Favorites

Hi All,

One disappointment in VS2008 is that Microsoft has not improved the
'favorites' section of the help browser.

Specifically, an ability to organise favorites in folders, and to sort them
by name would be nice.

I'm hoping these features are already there and someone here can enlighten
me on how to use them, but if they aren't, is there a back door way to access
the help favorites and at least sort them via windows explorer or somesuch?

--
David Streeter
Synchrotech Software
Sydney Australia

My System SpecsSystem Spec
Old 04-06-2008   #2 (permalink)
SurturZ


 
 

RE: Help Favorites

I worked it out!
------------------

Imports System.Xml

Module modMain

Sub Main()
'sorts help favorites in VS Help
'C:\Documents and Settings\dstreeter\Application
Data\Microsoft\VisualStudio\9.0\VS Help Data
Dim strAppDataBasePath As String =
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
strAppDataBasePath = Left(strAppDataBasePath,
InStr(strAppDataBasePath, "Application Data\") + 16)

Dim strFilename As String = strAppDataBasePath &
"\Microsoft\VisualStudio\9.0\VS Help Data\Favorites.xml"
Dim strOutputFilename As String = strAppDataBasePath &
"\Microsoft\VisualStudio\9.0\VS Help Data\FavoritesNew.xml"

Dim strXML As String = My.Computer.FileSystem.ReadAllText(strFilename)
Dim xdc As New XmlDocument
xdc.LoadXml(strXML)
Dim xndTopics As XmlNode = xdc.ChildNodes(1).ChildNodes(0)
If xndTopics.Name <> "FavoriteTopics" Then
Console.WriteLine("Bad file: " & strFilename)
GoTo EndProg
End If
'bubble sort
For outer As Integer = xndTopics.ChildNodes.Count - 2 To 0 Step -1
Dim intSwaps As Integer = 0
For inner As Integer = 0 To outer
If
xndTopics.ChildNodes(inner).ChildNodes(0).ChildNodes(0).Value >
xndTopics.ChildNodes(inner + 1).ChildNodes(0).ChildNodes(0).Value Then
Dim xnd As XmlNode =
xndTopics.ChildNodes(inner).CloneNode(True)
xndTopics.ReplaceChild(xndTopics.ChildNodes(inner +
1).CloneNode(True), xndTopics.ChildNodes(inner))
xndTopics.ReplaceChild(xnd, xndTopics.ChildNodes(inner +
1))
intSwaps += 1
End If
Next inner
If intSwaps = 0 Then Exit For
Next outer

On Error Resume Next
Kill(strOutputFilename)
On Error GoTo 0
xdc.Save(strOutputFilename)
Console.WriteLine("Sorted file saved as " & strOutputFilename)
EndProg:
Console.ReadKey()
End Sub

End Module

--
David Streeter
Synchrotech Software
Sydney Australia


"SurturZ" wrote:
Quote:

> Hi All,
>
> One disappointment in VS2008 is that Microsoft has not improved the
> 'favorites' section of the help browser.
>
> Specifically, an ability to organise favorites in folders, and to sort them
> by name would be nice.
>
> I'm hoping these features are already there and someone here can enlighten
> me on how to use them, but if they aren't, is there a back door way to access
> the help favorites and at least sort them via windows explorer or somesuch?
>
> --
> David Streeter
> Synchrotech Software
> Sydney Australia
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Favorites Vista General
Cannot Add Favorites Network & Sharing
IE7 favorites fix Network & Sharing
Where are Favorites kept Vista General
Re: IE7: Cannot add to favorites Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46