亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filelistbox.vb

?? 以前做NOKIA手機與PC通信時所參考的源代碼,里面包括兩個程序,一個是手機文件夾瀏覽源碼,另一個手機SIS安裝程序.
?? VB
字號:
'Filename    : FileListBox.vb
'Part of     : Phone Navigator VB.NET example
'Description : Implementation of phone navigator's file list box
'Version     : 3.2
'
'This example is only to be used with PC Connectivity API version 3.2.
'Compability ("as is") with future versions is not quaranteed.
'
'Copyright (c) 2005-2007 Nokia Corporation.
'
'This material, including but not limited to documentation and any related
'computer programs, is protected by intellectual property rights of Nokia
'Corporation and/or its licensors.
'All rights are reserved. Reproducing, modifying, translating, or
'distributing any or all of this material requires the prior written consent
'of Nokia Corporation. Nokia Corporation retains the right to make changes
'to this material at any time without notice. A copyright license is hereby
'granted to download and print a copy of this material for personal use only.
'No other license to any other intellectual property rights is granted. The
'material is provided "as is" without warranty of any kind, either express or
'implied, including without limitation, any warranty of non-infringement,
'merchantability and fitness for a particular purpose. In no event shall
'Nokia Corporation be liable for any direct, indirect, special, incidental,
'or consequential loss or damages, including but not limited to, lost profits
'or revenue,loss of use, cost of substitute program, or loss of data or
'equipment arising out of the use or inability to use the material, even if
'Nokia Corporation has been advised of the likelihood of such damages occurring.

Imports System
Imports System.Runtime.InteropServices
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.IO



'===================================================================
' FileListBox
Public Class FileListBox
    Inherits System.Windows.Forms.ListBox
    Private m_strCurrentPath As String

    '===================================================================
    ' Constructor
    '
    '===================================================================
    Public Sub New()
        m_strCurrentPath = ""
    End Sub

    '===================================================================
    ' GetCurrentFolder
    '
    ' Returns currently selected folder.
    ' If no folder is selected, returns folder, the content of which is
    ' currently shown.
    ' 
    '===================================================================
    Public Function GetCurrentFolder() As String
        Return m_strCurrentPath
    End Function

    '===================================================================
    ' GetCurrentFile
    '
    ' Returns currently selected file.
    ' If no file is selected, returns empty string.
    ' 
    '===================================================================
    Function GetCurrentFile() As String
        GetCurrentFile = ""
        Dim index As Integer = SelectedIndex
        If index <> -1 Then
            ' there is a selected item
            Dim strSelectedTxt As String
            strSelectedTxt = Items(index).ToString()
            If strSelectedTxt.Substring(0, 1) <> "[" Then
                ' selected item is a file
                GetCurrentFile = strSelectedTxt
            End If
        End If
    End Function

    '===================================================================
    ' PopulateList
    '
    ' Adds folders, files and drives of current folder to listbox
    ' 
    '===================================================================
    Public Sub PopulateList(ByVal strNewDirectory As String)
        Me.Items.Clear()
        Try
            Dim strPath As String

            If m_strCurrentPath.Length = 0 Then
                strPath = ("c:\")
            ElseIf strNewDirectory = ".." Then
                ' Parent folder
                strPath = m_strCurrentPath
                Dim iLastSeparator As Integer = strPath.LastIndexOf("\")
                strPath = strPath.Remove(iLastSeparator, strPath.Length - iLastSeparator)
                If strPath.Length < 3 And Not strPath.EndsWith("\") Then
                    strPath = strPath + "\"
                End If
            Else
                If m_strCurrentPath.EndsWith("\") Then
                    strPath = m_strCurrentPath + strNewDirectory
                Else
                    strPath = m_strCurrentPath + "\" + strNewDirectory
                End If
            End If

            Dim dirInfo As DirectoryInfo = New DirectoryInfo(strPath)

            If strPath.Length > 3 Then Me.Items.Add("[..]")

            ' List directories
            Dim dirInfos() As DirectoryInfo = dirInfo.GetDirectories()
            Dim di As DirectoryInfo
            For Each di In dirInfos
                Dim dirName As String = "[" + di.ToString() + "]"
                Me.Items.Add(dirName)
            Next

            ' List files
            Dim fileInfos() As FileInfo = dirInfo.GetFiles()
            Dim fi As FileInfo
            For Each fi In fileInfos
                Me.Items.Add(fi.ToString())
            Next

            ' List drives if the current level is at the root
            If strPath.Length >= 0 And strPath.Length <= 3 Then
                Dim strArrDrives() As String = System.IO.Directory.GetLogicalDrives()
                Dim drive As String
                For Each drive In strArrDrives
                    Dim driveName As String = "[-" + drive.Substring(0, 1) + "-]"
                    Me.Items.Add(driveName)
                Next
            End If

            m_strCurrentPath = strPath

        Catch
            ' If reading directory failed offer all logical drives
            Dim strArrDrives() As String = System.IO.Directory.GetLogicalDrives()
            Dim drive As String
            For Each drive In strArrDrives
                Dim driveName As String = "[-" + drive.Substring(0, 1) + "-]"
                Me.Items.Add(driveName)
            Next
        End Try
    End Sub

    '===================================================================
    ' OnDoubleClick
    '
    ' User has doubleclicked in the listbox.
    ' 
    '===================================================================
    Protected Overrides Sub OnDoubleClick(ByVal e As EventArgs)
        Dim iItemIdx As Integer = Me.SelectedIndex
        If iItemIdx >= 0 Then
            Dim strItemText As String = Me.Items(iItemIdx).ToString()
            If strItemText.Substring(0, 1) = "["c Then
                If strItemText.Substring(1, 1) = "-"c Then
                    ' drive selected
                    m_strCurrentPath = strItemText.Substring(2, 1) + ":\"
                    PopulateList("")
                Else
                    Dim strNewDirectory As String = strItemText
                    strNewDirectory = strNewDirectory.Remove(0, 1)
                    strNewDirectory = strNewDirectory.Remove(strNewDirectory.Length - 1, 1)
                    PopulateList(strNewDirectory)
                End If
            End If
        End If
        MainForm.LBL_PCFiles.Text = m_strCurrentPath
        MyBase.OnDoubleClick(e)
    End Sub
End Class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美电影在哪看比较好| 欧美调教femdomvk| 丁香天五香天堂综合| 亚洲一区二区三区美女| 一区二区三区在线不卡| 一区二区三区在线免费视频| 成人欧美一区二区三区黑人麻豆| 国产免费成人在线视频| 国产精品毛片高清在线完整版| 国产欧美日韩在线视频| 国产精品每日更新在线播放网址 | 99久久亚洲一区二区三区青草 | 亚洲免费观看高清在线观看| 亚洲男人的天堂网| 亚洲一线二线三线久久久| 一区二区三区不卡视频| 视频在线观看国产精品| 美女视频黄频大全不卡视频在线播放| 蜜桃视频在线观看一区| 韩国女主播成人在线观看| 成人激情综合网站| 日本韩国精品一区二区在线观看| 欧美在线free| 久久只精品国产| 亚洲色图视频网| 日韩成人免费看| 国产一区二区三区精品欧美日韩一区二区三区| 国产精品主播直播| 91丨porny丨蝌蚪视频| 欧美日韩亚洲综合在线| 26uuu久久综合| 亚洲乱码国产乱码精品精可以看| 亚洲电影在线免费观看| 风间由美一区二区av101| 在线观看成人免费视频| 精品国产伦理网| 亚洲一区视频在线观看视频| 老鸭窝一区二区久久精品| 91在线精品秘密一区二区| 欧美一卡二卡三卡| 亚洲私人影院在线观看| 久久精品国产99国产精品| 色视频成人在线观看免| 国产夜色精品一区二区av| 亚洲va中文字幕| av欧美精品.com| 久久久不卡网国产精品一区| 亚洲电影中文字幕在线观看| 99久久精品国产导航| 26uuu精品一区二区三区四区在线| 亚洲美女免费在线| 成人午夜免费电影| 日韩欧美高清在线| 午夜私人影院久久久久| 91福利在线播放| 国产精品不卡一区| 国产伦精品一区二区三区免费| 欧美日韩免费视频| 亚洲男人的天堂网| 91在线视频观看| 亚洲欧美日韩久久精品| 99热国产精品| 中文字幕日韩精品一区| 成人永久aaa| 欧美国产亚洲另类动漫| 国产精品1区2区3区| 精品播放一区二区| 国产在线视频一区二区三区| 欧美一卡二卡在线| 美女视频网站黄色亚洲| 日韩精品中午字幕| 久久超碰97中文字幕| 日韩一区二区在线观看视频播放| 天使萌一区二区三区免费观看| 在线亚洲人成电影网站色www| 亚洲丝袜美腿综合| 色综合咪咪久久| 一区二区三区在线影院| 色菇凉天天综合网| 亚洲国产成人av网| 91精品国产综合久久小美女| 免费亚洲电影在线| 久久午夜羞羞影院免费观看| 国产很黄免费观看久久| 国产精品乱码妇女bbbb| 91丝袜美女网| 亚洲电影中文字幕在线观看| 3atv一区二区三区| 精品一区二区国语对白| 久久久www免费人成精品| av不卡在线播放| 亚洲国产精品一区二区www在线 | 欧美国产一区二区在线观看| 成人av在线播放网站| 亚洲精品成a人| 日韩美女主播在线视频一区二区三区| 韩国三级在线一区| 国产精品高潮呻吟久久| 欧美日韩免费观看一区三区| 久久99热99| 一区二区三区日韩欧美精品| 欧美电影在哪看比较好| 国产99久久久久| 亚洲午夜精品网| 久久九九影视网| 欧美视频在线一区二区三区| 久久国产剧场电影| 亚洲一区二区三区美女| 久久综合久久99| 在线看不卡av| 国产成人综合在线| 午夜久久久久久久久久一区二区| 久久久精品日韩欧美| 欧美日韩一二区| 成人免费毛片app| 美日韩一区二区三区| 亚洲免费在线看| 国产欧美精品一区aⅴ影院 | 不卡的av在线播放| 天堂影院一区二区| 欧美激情一区在线观看| 欧美精品一二三四| 91视频精品在这里| 国产夫妻精品视频| 蜜臀a∨国产成人精品| 亚洲精品视频免费观看| 国产日韩欧美a| 日韩欧美一区二区不卡| 欧美日韩中文一区| 97se亚洲国产综合自在线观| 国产成a人亚洲精| 精品一区二区三区免费视频| 亚洲bt欧美bt精品777| 亚洲天堂福利av| 国产精品免费av| 国产日韩欧美在线一区| 日韩美女视频在线| 日韩一级黄色大片| 777午夜精品视频在线播放| 欧美日韩亚洲另类| 91精品福利视频| 在线中文字幕一区二区| 91免费看`日韩一区二区| 成人激情小说乱人伦| 高清shemale亚洲人妖| 久久精品国产77777蜜臀| 久久国产乱子精品免费女| 麻豆国产精品一区二区三区| 麻豆精品精品国产自在97香蕉| 天天综合网 天天综合色| 亚洲mv在线观看| 五月天久久比比资源色| 日本欧美一区二区在线观看| 日本午夜一区二区| 美女一区二区三区在线观看| 蜜臀久久99精品久久久久宅男 | jiyouzz国产精品久久| 成人毛片老司机大片| 成人激情小说网站| 91丝袜国产在线播放| 91精品1区2区| 7777精品伊人久久久大香线蕉经典版下载 | 国产蜜臀av在线一区二区三区| 国产蜜臀97一区二区三区| 欧美激情一区二区在线| 亚洲品质自拍视频| 午夜欧美电影在线观看| 精品一区二区三区日韩| 成人午夜精品在线| 97精品国产露脸对白| 欧美四级电影网| 精品少妇一区二区| 国产精品国产自产拍在线| 亚洲三级视频在线观看| 天天av天天翘天天综合网| 国模一区二区三区白浆| 91丨国产丨九色丨pron| 91精品国产综合久久久蜜臀图片| 欧美变态凌虐bdsm| 国产精品短视频| 日本少妇一区二区| 国产精品综合在线视频| 一本色道久久综合亚洲aⅴ蜜桃| 欧美美女一区二区三区| 精品国产乱码久久久久久闺蜜| 中文字幕制服丝袜成人av| 日本伊人色综合网| av一二三不卡影片| 日韩欧美一区二区在线视频| 国产精品天干天干在线综合| 亚洲大片精品永久免费| 国产精品一级片在线观看| 色av成人天堂桃色av| www久久精品| 亚洲图片欧美综合| 成人永久免费视频| 精品国产网站在线观看| 一区二区成人在线| 成年人国产精品| 欧美精品一区二区三区四区|