?? form1.vb
字號:
Imports VB = Microsoft.VisualBasic
Friend Class Form1
Inherits System.Windows.Forms.Form
#Region "Windows 窗體設計器生成的代碼"
Public Sub New()
MyBase.New()
'此調用是 Windows 窗體設計器所必需的。
InitializeComponent()
End Sub
'窗體重寫處置,以清理組件列表。
Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
If Disposing Then
If Not components Is Nothing Then
components.Dispose()
End If
End If
MyBase.Dispose(Disposing)
End Sub
'Windows 窗體設計器所必需的
Private components As System.ComponentModel.IContainer
Public ToolTip1 As System.Windows.Forms.ToolTip
'注意: 以下過程是 Windows 窗體設計器所必需的
'可以使用 Windows 窗體設計器來修改它。
'不要使用代碼編輯器修改它。
Public WithEvents Button1 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Button1 = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'Button1
'
Me.Button1.BackColor = System.Drawing.SystemColors.Control
Me.Button1.Cursor = System.Windows.Forms.Cursors.Default
Me.Button1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Button1.Location = New System.Drawing.Point(26, 16)
Me.Button1.Name = "Button1"
Me.Button1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Button1.Size = New System.Drawing.Size(113, 37)
Me.Button1.TabIndex = 0
Me.Button1.Text = "整理收藏夾"
'
'Form1
'
Me.AcceptButton = Me.Button1
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.BackColor = System.Drawing.SystemColors.Control
Me.ClientSize = New System.Drawing.Size(164, 69)
Me.Controls.Add(Me.Button1)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.Location = New System.Drawing.Point(196, 123)
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "Form1"
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.StartPosition = System.Windows.Forms.FormStartPosition.Manual
Me.Text = "整理收藏夾"
Me.ResumeLayout(False)
End Sub
#End Region
' 整理收藏夾
Private Sub Button1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Button1.Click
Dim lpszRootFolder As String
Dim lpszPath As String
Dim dwReturn As Integer
lpszPath = Space(256)
' 取得收藏夾的路徑
dwReturn = SHGetFolderPath(Me.Handle.ToInt32, CSIDL_FAVORITES, 0, &H0S, lpszPath)
If dwReturn = 0 Then
lpszRootFolder = VB.Left(lpszPath, InStr(lpszPath, vbNullChar) - 1)
End If
' 打開“整理收藏夾”對話框
DoOrganizeFavDlg(Handle.ToInt32, lpszRootFolder)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -