<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FWindows_System%2FWeb_Favorite</id>
		<title>VB.Net/Windows System/Web Favorite - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FWindows_System%2FWeb_Favorite"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Windows_System/Web_Favorite&amp;action=history"/>
		<updated>2026-04-05T05:43:50Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/Windows_System/Web_Favorite&amp;diff=600&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Windows_System/Web_Favorite&amp;diff=600&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/Windows_System/Web_Favorite&amp;diff=601&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Windows_System/Web_Favorite&amp;diff=601&amp;oldid=prev"/>
				<updated>2010-05-26T12:44:37Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Display All your favorites==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim Favorites As Favorites = New Favorites()&lt;br /&gt;
        Favorites.ScanFavorites()&lt;br /&gt;
        &lt;br /&gt;
        Dim f As WebFavorite&lt;br /&gt;
     &lt;br /&gt;
        For Each f in Favorites.Favorites&lt;br /&gt;
          Console.WriteLine(f.Name)&lt;br /&gt;
        Next     &lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class Favorites&lt;br /&gt;
    Public Favorites As WebFavoriteCollection&lt;br /&gt;
    Public ReadOnly Property FavoritesFolder() As String&lt;br /&gt;
        Get&lt;br /&gt;
            Return _&lt;br /&gt;
            Environment.GetFolderPath(Environment.SpecialFolder.Favorites)&lt;br /&gt;
        End Get&lt;br /&gt;
    End Property&lt;br /&gt;
    Public Sub ScanFavorites()&lt;br /&gt;
        ScanFavorites(FavoritesFolder)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub ScanFavorites(ByVal folderName As String)&lt;br /&gt;
        If Favorites Is Nothing Then Favorites = New _&lt;br /&gt;
                        WebFavoriteCollection()&lt;br /&gt;
        Dim scanFolder As New DirectoryInfo(folderName)&lt;br /&gt;
        Dim favoriteFile As FileInfo&lt;br /&gt;
        For Each favoriteFile In scanFolder.GetFiles&lt;br /&gt;
            If String.rupare(favoriteFile.Extension, &amp;quot;.url&amp;quot;, True) = 0 Then&lt;br /&gt;
                Dim favorite As New WebFavorite()&lt;br /&gt;
                favorite.Load(favoriteFile)&lt;br /&gt;
                Favorites.Add(favorite)&lt;br /&gt;
            End If&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class WebFavoriteCollection&lt;br /&gt;
    Inherits CollectionBase&lt;br /&gt;
    Public Sub Add(ByVal favorite As WebFavorite)&lt;br /&gt;
        List.Add(favorite)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub Remove(ByVal index As Integer)&lt;br /&gt;
        If index &amp;gt;= 0 And index &amp;lt; Count Then&lt;br /&gt;
            List.Remove(index)&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public ReadOnly Property Item(ByVal index As Integer) _&lt;br /&gt;
           As WebFavorite&lt;br /&gt;
        Get&lt;br /&gt;
            Return CType(List.Item(index), WebFavorite)&lt;br /&gt;
        End Get&lt;br /&gt;
    End Property&lt;br /&gt;
End Class&lt;br /&gt;
Public Class WebFavorite&lt;br /&gt;
    Public Name As String&lt;br /&gt;
    Public Url As String&lt;br /&gt;
    Public Sub Open()&lt;br /&gt;
        System.Diagnostics.Process.Start(Url)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub Load(ByVal fileInfo As FileInfo)&lt;br /&gt;
        Name = fileInfo.Name.Substring(0, _&lt;br /&gt;
            fileInfo.Name.Length - fileInfo.Extension.Length)&lt;br /&gt;
        Dim stream As New FileStream(fileInfo.FullName, FileMode.Open)&lt;br /&gt;
        Dim reader As New StreamReader(stream)&lt;br /&gt;
        Do While True&lt;br /&gt;
            Dim buf As String = reader.ReadLine&lt;br /&gt;
            If buf Is Nothing Then Exit Do&lt;br /&gt;
            If buf.StartsWith(&amp;quot;URL=&amp;quot;) Then&lt;br /&gt;
                Url = buf.Substring(4)&lt;br /&gt;
                Exit Do&lt;br /&gt;
            End If&lt;br /&gt;
        Loop&lt;br /&gt;
        reader.Close()&lt;br /&gt;
        stream.Close()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Display Your Web Favorite Collection==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Resources&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New Form1()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class WebFavoriteCollection&lt;br /&gt;
    Inherits CollectionBase&lt;br /&gt;
    Public Sub Add(ByVal Favorite As WebFavorite)&lt;br /&gt;
        &amp;quot;Add item to the collection&lt;br /&gt;
        List.Add(Favorite)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub Remove(ByVal Index As Integer)&lt;br /&gt;
        &amp;quot;Remove item from collection&lt;br /&gt;
        If Index &amp;gt;= 0 And Index &amp;lt; Count Then&lt;br /&gt;
            List.Remove(Index)&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public ReadOnly Property Item(ByVal Index As Integer) As WebFavorite&lt;br /&gt;
        Get&lt;br /&gt;
            &amp;quot;Get an item from the collection by its index&lt;br /&gt;
            Return CType(List.Item(Index), WebFavorite)&lt;br /&gt;
        End Get&lt;br /&gt;
    End Property&lt;br /&gt;
End Class&lt;br /&gt;
Public Class Favorites&lt;br /&gt;
    Implements IDisposable&lt;br /&gt;
    Private disposed As Boolean = False&lt;br /&gt;
    &amp;quot; IDisposable&lt;br /&gt;
    Private Overloads Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If Not Me.disposed Then&lt;br /&gt;
            If disposing Then&lt;br /&gt;
                &amp;quot; TODO: put code to dispose managed resources&lt;br /&gt;
            End If&lt;br /&gt;
            &amp;quot; TODO: put code to free unmanaged resources here&lt;br /&gt;
        End If&lt;br /&gt;
        Me.disposed = True&lt;br /&gt;
    End Sub&lt;br /&gt;
#Region &amp;quot; IDisposable Support &amp;quot;&lt;br /&gt;
    &amp;quot; This code added by Visual Basic to correctly implement the disposable pattern.&lt;br /&gt;
    Public Overloads Sub Dispose() Implements IDisposable.Dispose&lt;br /&gt;
        &amp;quot; Do not change this code.  Put cleanup code in Dispose(ByVal disposing As Boolean) above.&lt;br /&gt;
        Dispose(True)&lt;br /&gt;
        GC.SuppressFinalize(Me)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Protected Overrides Sub Finalize()&lt;br /&gt;
        &amp;quot; Do not change this code.  Put cleanup code in Dispose(ByVal disposing As Boolean) above.&lt;br /&gt;
        Dispose(False)&lt;br /&gt;
        MyBase.Finalize()&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    &amp;quot;Public member&lt;br /&gt;
    Public FavoritesCollection As WebFavoriteCollection&lt;br /&gt;
    Public ReadOnly Property FavoritesFolder() As String&lt;br /&gt;
        Get&lt;br /&gt;
            &amp;quot;Return the path to the user&amp;quot;s Favorites folder&lt;br /&gt;
            Return Environment.GetFolderPath( _&lt;br /&gt;
                Environment.SpecialFolder.Favorites)&lt;br /&gt;
        End Get&lt;br /&gt;
    End Property&lt;br /&gt;
    Public Sub ScanFavorites()&lt;br /&gt;
        &amp;quot;Scan the Favorites folder&lt;br /&gt;
        ScanFavorites(FavoritesFolder)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub ScanFavorites(ByVal folderName As String)&lt;br /&gt;
        &amp;quot;If the FavoritesCollection member has not been instantiated&lt;br /&gt;
        &amp;quot;then instaniate it&lt;br /&gt;
        If FavoritesCollection Is Nothing Then&lt;br /&gt;
            FavoritesCollection = New WebFavoriteCollection&lt;br /&gt;
        End If&lt;br /&gt;
        &amp;quot;Process each file in the Favorites folder&lt;br /&gt;
        For Each strFile As String In _&lt;br /&gt;
            My.ruputer.FileSystem.GetFiles(folderName)&lt;br /&gt;
            &amp;quot;If the file has a url extension...&lt;br /&gt;
            If strFile.EndsWith(&amp;quot;.url&amp;quot;, True, Nothing) Then&lt;br /&gt;
                Try&lt;br /&gt;
                    &amp;quot;Create and use a new instanace of the &lt;br /&gt;
                    &amp;quot;WebFavorite class&lt;br /&gt;
                    Using objWebFavorite As New WebFavorite&lt;br /&gt;
                        &amp;quot;Load the file information&lt;br /&gt;
                        objWebFavorite.Load(strFile)&lt;br /&gt;
                        &amp;quot;Add the object to the collection&lt;br /&gt;
                        FavoritesCollection.Add(objWebFavorite)&lt;br /&gt;
                    End Using&lt;br /&gt;
                Catch ExceptionErr As Exception&lt;br /&gt;
                    &amp;quot;Return the exception to the caller&lt;br /&gt;
                    Throw New Exception(ExceptionErr.Message)&lt;br /&gt;
                End Try&lt;br /&gt;
            End If&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class WebFavorite&lt;br /&gt;
    Implements IDisposable&lt;br /&gt;
    Private disposed As Boolean = False&lt;br /&gt;
    &amp;quot; IDisposable&lt;br /&gt;
    Private Overloads Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If Not Me.disposed Then&lt;br /&gt;
            If disposing Then&lt;br /&gt;
                &amp;quot; TODO: put code to dispose managed resources&lt;br /&gt;
            End If&lt;br /&gt;
            &amp;quot; TODO: put code to free unmanaged resources here&lt;br /&gt;
        End If&lt;br /&gt;
        Me.disposed = True&lt;br /&gt;
    End Sub&lt;br /&gt;
#Region &amp;quot; IDisposable Support &amp;quot;&lt;br /&gt;
    &amp;quot; This code added by Visual Basic to correctly implement the disposable pattern.&lt;br /&gt;
    Public Overloads Sub Dispose() Implements IDisposable.Dispose&lt;br /&gt;
        &amp;quot; Do not change this code.  Put cleanup code in Dispose(ByVal disposing As Boolean) above.&lt;br /&gt;
        Dispose(True)&lt;br /&gt;
        GC.SuppressFinalize(Me)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Protected Overrides Sub Finalize()&lt;br /&gt;
        &amp;quot; Do not change this code.  Put cleanup code in Dispose(ByVal disposing As Boolean) above.&lt;br /&gt;
        Dispose(False)&lt;br /&gt;
        MyBase.Finalize()&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    &amp;quot;Public Members&lt;br /&gt;
    Public Name As String&lt;br /&gt;
    Public Url As String&lt;br /&gt;
    Public Sub Load(ByVal fileName As String)&lt;br /&gt;
        &amp;quot;Declare variables&lt;br /&gt;
        Dim strData As String&lt;br /&gt;
        Dim strLines() As String&lt;br /&gt;
        Dim strLine As String&lt;br /&gt;
        Dim objFileInfo As New FileInfo(fileName)&lt;br /&gt;
        &amp;quot;Set the Name member to the file name minus the extension&lt;br /&gt;
        Name = objFileInfo.Name.Substring(0, _&lt;br /&gt;
            objFileInfo.Name.Length - objFileInfo.Extension.Length)&lt;br /&gt;
        Try&lt;br /&gt;
            &amp;quot;Read the entire contents of the file&lt;br /&gt;
            strData = My.ruputer.FileSystem.ReadAllText(fileName)&lt;br /&gt;
            &amp;quot;Split the lines of data in the file&lt;br /&gt;
            strLines = strData.Split(New String() {ControlChars.CrLf}, _&lt;br /&gt;
                StringSplitOptions.RemoveEmptyEntries)&lt;br /&gt;
            &amp;quot;Process each line looking for the URL&lt;br /&gt;
            For Each strLine In strLines&lt;br /&gt;
                &amp;quot;Does the line of data start with URL=&lt;br /&gt;
                If strLine.StartsWith(&amp;quot;URL=&amp;quot;) Then&lt;br /&gt;
                    &amp;quot;Yes, set the Url member to the actual URL&lt;br /&gt;
                    Url = strLine.Substring(4)&lt;br /&gt;
                    &amp;quot;Exit the For...Next loop&lt;br /&gt;
                    Exit For&lt;br /&gt;
                End If&lt;br /&gt;
            Next&lt;br /&gt;
        Catch IOExceptionErr As IOException&lt;br /&gt;
            &amp;quot;Return the exception to the caller&lt;br /&gt;
            Throw New Exception(IOExceptionErr.Message)&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) _&lt;br /&gt;
        Handles Me.Load&lt;br /&gt;
        Try&lt;br /&gt;
            &amp;quot;Create and use a new instanace of the Favorites class &lt;br /&gt;
            Using objFavorites As New Favorites&lt;br /&gt;
                &amp;quot;Scan the Favorites folder&lt;br /&gt;
                objFavorites.ScanFavorites()&lt;br /&gt;
                &amp;quot;Process each objWebFavorite object in the &lt;br /&gt;
                &amp;quot;favorites collection&lt;br /&gt;
                For Each objWebFavorite As WebFavorite In _&lt;br /&gt;
                    objFavorites.FavoritesCollection&lt;br /&gt;
                    &amp;quot;Declare a ListViewItem object&lt;br /&gt;
                    Dim objListViewItem As New ListViewItem&lt;br /&gt;
                    &amp;quot;Set the properties of the ListViewItem object&lt;br /&gt;
                    objListViewItem.Text = objWebFavorite.Name&lt;br /&gt;
                    objListViewItem.SubItems.Add(objWebFavorite.Url)&lt;br /&gt;
                    &amp;quot;Add the ListViewItem object to the ListView&lt;br /&gt;
                    lstFavorites.Items.Add(objListViewItem)&lt;br /&gt;
                Next&lt;br /&gt;
            End Using&lt;br /&gt;
        Catch ExceptionErr As Exception&lt;br /&gt;
            &amp;quot;Display the error&lt;br /&gt;
            MessageBox.Show(ExceptionErr.Message, &amp;quot;Favorites Viewer&amp;quot;, _&lt;br /&gt;
                MessageBoxButtons.OK, MessageBoxIcon.Warning)&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub lstFavorites_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles lstFavorites.Click&lt;br /&gt;
        &amp;quot;Update the link label control Text property&lt;br /&gt;
        lnkUrl.Text = &amp;quot;Visit &amp;quot; &amp;amp; lstFavorites.SelectedItems.Item(0).Text&lt;br /&gt;
        &amp;quot;Clear the default hyperlink &lt;br /&gt;
        lnkUrl.Links.Clear()&lt;br /&gt;
        &amp;quot;Add the selected hyperlink to the LinkCollection&lt;br /&gt;
        lnkUrl.Links.Add(6, lstFavorites.SelectedItems.Item(0).Text.Length, _&lt;br /&gt;
            lstFavorites.SelectedItems.Item(0).SubItems(1).Text)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub lnkUrl_LinkClicked(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _&lt;br /&gt;
        Handles lnkUrl.LinkClicked&lt;br /&gt;
        &amp;quot;Process the selected link&lt;br /&gt;
       &amp;quot; Process.Start(e.Link.LinkData)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.lstFavorites = New System.Windows.Forms.ListView&lt;br /&gt;
        Me.hdrName = New System.Windows.Forms.ColumnHeader&lt;br /&gt;
        Me.hdrUrl = New System.Windows.Forms.ColumnHeader&lt;br /&gt;
        Me.lnkUrl = New System.Windows.Forms.LinkLabel&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;lstFavorites&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.lstFavorites.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.lstFavorites.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.hdrName, Me.hdrUrl})&lt;br /&gt;
        Me.lstFavorites.Location = New System.Drawing.Point(0, 0)&lt;br /&gt;
        Me.lstFavorites.Name = &amp;quot;lstFavorites&amp;quot;&lt;br /&gt;
        Me.lstFavorites.Size = New System.Drawing.Size(457, 223)&lt;br /&gt;
        Me.lstFavorites.TabIndex = 0&lt;br /&gt;
        Me.lstFavorites.View = System.Windows.Forms.View.Details&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;hdrName&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.hdrName.Text = &amp;quot;Name&amp;quot;&lt;br /&gt;
        Me.hdrName.Width = 250&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;hdrUrl&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.hdrUrl.Text = &amp;quot;URL&amp;quot;&lt;br /&gt;
        Me.hdrUrl.Width = 250&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;lnkUrl&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.lnkUrl.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)&lt;br /&gt;
        Me.lnkUrl.AutoSize = True&lt;br /&gt;
        Me.lnkUrl.Location = New System.Drawing.Point(0, 231)&lt;br /&gt;
        Me.lnkUrl.Name = &amp;quot;lnkUrl&amp;quot;&lt;br /&gt;
        Me.lnkUrl.Size = New System.Drawing.Size(55, 13)&lt;br /&gt;
        Me.lnkUrl.TabIndex = 1&lt;br /&gt;
        Me.lnkUrl.TabStop = True&lt;br /&gt;
        Me.lnkUrl.Text = &amp;quot;LinkLabel1&amp;quot;&lt;br /&gt;
        Me.lnkUrl.TextAlign = System.Drawing.ContentAlignment.MiddleLeft&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(456, 253)&lt;br /&gt;
        Me.Controls.Add(Me.lnkUrl)&lt;br /&gt;
        Me.Controls.Add(Me.lstFavorites)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
        Me.Text = &amp;quot;My Favorites&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents lstFavorites As System.Windows.Forms.ListView&lt;br /&gt;
    Friend WithEvents hdrName As System.Windows.Forms.ColumnHeader&lt;br /&gt;
    Friend WithEvents hdrUrl As System.Windows.Forms.ColumnHeader&lt;br /&gt;
    Friend WithEvents lnkUrl As System.Windows.Forms.LinkLabel&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Web Favorite Folder==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
      Console.WriteLine(Environment.GetFolderPath(Environment.SpecialFolder.Favorites))&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>