<?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_Tutorial%2FWindows%2FIE</id>
		<title>VB.Net Tutorial/Windows/IE - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FWindows%2FIE"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/IE&amp;action=history"/>
		<updated>2026-04-05T01:30:29Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/IE&amp;diff=3626&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_Tutorial/Windows/IE&amp;diff=3626&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</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_Tutorial/Windows/IE&amp;diff=3627&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Windows/IE&amp;diff=3627&amp;oldid=prev"/>
				<updated>2010-05-26T12:56:10Z</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;==Get Favorites bookmark==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&amp;quot;Visual Basic 2005 Cookbook Solutions for VB 2005 Programmers&lt;br /&gt;
&amp;quot;by Tim Patrick (Author), John Craig (Author)&lt;br /&gt;
&amp;quot;# Publisher: O&amp;quot;Reilly Media, Inc. (September 21, 2006)&lt;br /&gt;
&amp;quot;# Language: English&lt;br /&gt;
&amp;quot;# ISBN-10: 0596101775&lt;br /&gt;
&amp;quot;# ISBN-13: 978-0596101770&lt;br /&gt;
&lt;br /&gt;
Imports MVB = Microsoft.VisualBasic&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class BuildYourOwnMenu&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Declare Auto Function GetPrivateProfileString Lib &amp;quot;kernel32&amp;quot; _&lt;br /&gt;
        (ByVal AppName As String, _&lt;br /&gt;
        ByVal KeyName As String, _&lt;br /&gt;
        ByVal DefaultValue As String, _&lt;br /&gt;
        ByVal ReturnedString As System.Text.StringBuilder, _&lt;br /&gt;
        ByVal BufferSize As Integer, _&lt;br /&gt;
        ByVal FileName As String) As Integer&lt;br /&gt;
    Private Sub MenuExitProgram_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuExitProgram.Click&lt;br /&gt;
        Me.Close()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;br /&gt;
        Dim favoritesPath As String&lt;br /&gt;
        favoritesPath = Environment.GetFolderPath(Environment.SpecialFolder.Favorites)&lt;br /&gt;
        If (favoritesPath = &amp;quot;&amp;quot;) Then Return&lt;br /&gt;
        If (My.ruputer.FileSystem.DirectoryExists(favoritesPath) = False) Then Return&lt;br /&gt;
        BuildFavorites(MenuFavorites, favoritesPath)&lt;br /&gt;
        If (MenuFavorites.DropDownItems.Count &amp;gt; 1) Then _&lt;br /&gt;
            MenuNoFavorites.Visible = False&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub BuildFavorites(ByVal whichMenu As ToolStripMenuItem, ByVal fromPath As String)&lt;br /&gt;
        Dim oneEntry As String&lt;br /&gt;
        Dim menuEntry As ToolStripMenuItem&lt;br /&gt;
        Dim linkPath As String&lt;br /&gt;
        Dim displayName As String&lt;br /&gt;
        For Each oneEntry In My.ruputer.FileSystem.GetDirectories(fromPath)&lt;br /&gt;
            menuEntry = New ToolStripMenuItem( _&lt;br /&gt;
                My.ruputer.FileSystem.GetName(oneEntry))&lt;br /&gt;
            BuildFavorites(menuEntry, oneEntry)&lt;br /&gt;
            If (menuEntry.DropDownItems.Count &amp;gt; 0) Then _&lt;br /&gt;
                whichMenu.DropDownItems.Add(menuEntry)&lt;br /&gt;
        Next oneEntry&lt;br /&gt;
        For Each oneEntry In My.ruputer.FileSystem.GetFiles(fromPath, _&lt;br /&gt;
                FileIO.SearchOption.SearchTopLevelOnly, &amp;quot;*.url&amp;quot;)&lt;br /&gt;
            linkPath = GetINIEntry(&amp;quot;InternetShortcut&amp;quot;, &amp;quot;URL&amp;quot;, oneEntry)&lt;br /&gt;
            If (linkPath &amp;lt;&amp;gt; &amp;quot;&amp;quot;) Then&lt;br /&gt;
                displayName = My.ruputer.FileSystem.GetName(oneEntry)&lt;br /&gt;
                displayName = MVB.Left(displayName, displayName.Length - 4)&lt;br /&gt;
                menuEntry = New ToolStripMenuItem(displayName)&lt;br /&gt;
                menuEntry.Tag = linkPath&lt;br /&gt;
                whichMenu.DropDownItems.Add(menuEntry)&lt;br /&gt;
                AddHandler menuEntry.Click, AddressOf RunFavoritesLink&lt;br /&gt;
            End If&lt;br /&gt;
        Next oneEntry&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub RunFavoritesLink(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;br /&gt;
        &amp;quot; ----- Run the link.&lt;br /&gt;
        Dim whichMenu As ToolStripMenuItem&lt;br /&gt;
        whichMenu = CType(sender, ToolStripMenuItem)&lt;br /&gt;
        Console.WriteLine(whichMenu.Tag)&lt;br /&gt;
        &amp;quot;Process.Start(whichMenu.Tag)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Function GetINIEntry(ByVal sectionName As String, _&lt;br /&gt;
            ByVal keyName As String, ByVal whichFile As String) As String&lt;br /&gt;
        &amp;quot; ----- Extract a value from an INI-style file.&lt;br /&gt;
        Dim resultLength As Integer&lt;br /&gt;
        Dim targetBuffer As New System.Text.StringBuilder(500)&lt;br /&gt;
        resultLength = GetPrivateProfileString(sectionName, keyName, &amp;quot;&amp;quot;, _&lt;br /&gt;
            targetBuffer, targetBuffer.Capacity, whichFile)&lt;br /&gt;
        Return targetBuffer.ToString()&lt;br /&gt;
    End Function&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial 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 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.MainMenu = New System.Windows.Forms.MenuStrip&lt;br /&gt;
        Me.MenuFile = New System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
        Me.MenuExitProgram = New System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
        Me.MenuFavorites = New System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
        Me.MenuNoFavorites = New System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
        Me.MainMenu.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MainMenu&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MainMenu.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.MenuFile, Me.MenuFavorites})&lt;br /&gt;
        Me.MainMenu.Location = New System.Drawing.Point(0, 0)&lt;br /&gt;
        Me.MainMenu.Name = &amp;quot;MainMenu&amp;quot;&lt;br /&gt;
        Me.MainMenu.Size = New System.Drawing.Size(292, 24)&lt;br /&gt;
        Me.MainMenu.TabIndex = 0&lt;br /&gt;
        Me.MainMenu.Text = &amp;quot;MenuStrip1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MenuFile&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MenuFile.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.MenuExitProgram})&lt;br /&gt;
        Me.MenuFile.Name = &amp;quot;MenuFile&amp;quot;&lt;br /&gt;
        Me.MenuFile.Size = New System.Drawing.Size(35, 20)&lt;br /&gt;
        Me.MenuFile.Text = &amp;quot;&amp;amp;File&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MenuExitProgram&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MenuExitProgram.Name = &amp;quot;MenuExitProgram&amp;quot;&lt;br /&gt;
        Me.MenuExitProgram.ShortcutKeys = CType((System.Windows.Forms.Keys.Alt Or System.Windows.Forms.Keys.F4), System.Windows.Forms.Keys)&lt;br /&gt;
        Me.MenuExitProgram.Size = New System.Drawing.Size(132, 22)&lt;br /&gt;
        Me.MenuExitProgram.Text = &amp;quot;E&amp;amp;xit&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MenuFavorites&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MenuFavorites.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.MenuNoFavorites})&lt;br /&gt;
        Me.MenuFavorites.Name = &amp;quot;MenuFavorites&amp;quot;&lt;br /&gt;
        Me.MenuFavorites.Size = New System.Drawing.Size(64, 20)&lt;br /&gt;
        Me.MenuFavorites.Text = &amp;quot;Fa&amp;amp;vorites&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MenuNoFavorites&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.MenuNoFavorites.Enabled = False&lt;br /&gt;
        Me.MenuNoFavorites.Name = &amp;quot;MenuNoFavorites&amp;quot;&lt;br /&gt;
        Me.MenuNoFavorites.Size = New System.Drawing.Size(112, 22)&lt;br /&gt;
        Me.MenuNoFavorites.Text = &amp;quot;(empty)&amp;quot;&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(292, 121)&lt;br /&gt;
        Me.Controls.Add(Me.MainMenu)&lt;br /&gt;
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle&lt;br /&gt;
        Me.MainMenuStrip = Me.MainMenu&lt;br /&gt;
        Me.MaximizeBox = False&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Runtime Menus&amp;quot;&lt;br /&gt;
        Me.MainMenu.ResumeLayout(False)&lt;br /&gt;
        Me.MainMenu.PerformLayout()&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents MainMenu As System.Windows.Forms.MenuStrip&lt;br /&gt;
    Friend WithEvents MenuFile As System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
    Friend WithEvents MenuExitProgram As System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
    Friend WithEvents MenuFavorites As System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
    Friend WithEvents MenuNoFavorites As System.Windows.Forms.ToolStripMenuItem&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>