Win7連接列表框是依照Windows7的開始菜單開發的,同時進行了屬性和功能的擴展。blog
效果圖事件
項屬性 ip
控件屬性開發
控件主要事件class
點擊項(Sender As Win7連接列表框, Itm As 連接項, e As MouseEventArgs) 雙擊項(Sender As Win7連接列表框, Itm As 連接項, e As MouseEventArgs) 移入項(Sender As Win7連接列表框, Itm As 連接項, e As MouseEventArgs) 移出項(Sender As Win7連接列表框, e As MouseEventArgs) 點擊箭頭區域(Sender As Win7連接列表框, Itm As 連接項, 箭頭區域 As Rectangle)
示例代碼擴展
Private Sub Win7連接列表框1_點擊箭頭區域(Sender As Win7連接列表框, Itm As Win7連接列表框.連接項, 箭頭區域 As Rectangle) Handles Win7連接列表框1.點擊箭頭區域 ContextMenuStrip1.Show(Win7連接列表框1.PointToScreen(New Point(Itm.矩形區域.Right, Itm.矩形區域.Top) - New Point(3, 0))) End Sub