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

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

?? frmmain.frm

?? INI_to_XML,XML文件操作,VB源程序.想學習XML編程的朋友可以下載試試.
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
'               class object
'****************************************************************************************
Option Explicit

'****************************************************************************************
'API CONSTANTS
'****************************************************************************************
Private Const SW_SHOW As Long = 5

'****************************************************************************************
'API FUNCTIONS
'****************************************************************************************
Private Declare Function ShellExecute Lib "shell32.dll" _
        Alias "ShellExecuteA" ( _
                ByVal hwnd As Long, _
                ByVal lpOperation As String, _
                ByVal lpFile As String, _
                ByVal lpParameters As String, _
                ByVal lpDirectory As String, _
                ByVal nShowCmd As Long) _
                As Long

'****************************************************************************************
'CONSTANTS - PRIVATE
'****************************************************************************************
Private Const cdOpenFilter As String = "INI Files (*.ini)|*.ini|XML Files (*.xml)|*.xml|All Files (*.*)|*.*"
Private Const cdSaveFilter As String = "XML Files (*.xml)|*.xml|All Files (*.*)|*.*"

'****************************************************************************************
'VARIABLES - PRIVATE
'****************************************************************************************
Private mcXML As New XMLConfig
Private msFilename As String

'****************************************************************************************
'EVENTS - PRIVATE
'****************************************************************************************
Private Sub cmdClose_Click()
    Unload Me
End Sub

Private Sub cmdDelKey_Click()
    'provide a way to delete a key
    Dim eRet As VbMsgBoxResult
    eRet = MsgBox("Are you sure you want to delete this key?", vbYesNo)
    If eRet = vbYes Then
        mcXML.Section = txtSection.Text
        mcXML.Key = txtKey.Text
        mcXML.DeleteKey
        RefreshList
    End If
End Sub

Private Sub cmdView_Click()
    mnuFile_Click 3
End Sub

Private Sub cmdWrite_Click()
    
    'there must be a key name
    If txtKey.Text = vbNullString Then
        MsgBox "You must enter a Key name before attempting to write"
        txtKey.SetFocus
        Exit Sub
    End If
    
    'there must be a section name
    If txtSection.Text = vbNullString Then
        MsgBox "You must enter a Section name before attempting to write"
        txtSection.SetFocus
        Exit Sub
    End If
    
    'make sure we have a valid filename before attempting to write
    If msFilename = vbNullString Then
        mnuFile_Click 1
        If msFilename = vbNullString Then
            Exit Sub
        End If
        mcXML.Path = msFilename
    End If
    
    'now set the properties and refresh the list
    With mcXML
        .Section = txtSection.Text
        .SectionDescription = txtSectDesc.Text
        .Key = txtKey.Text
        .KeyDescription = txtKeyDesc.Text
        .Value = txtValue.Text
    End With
    
End Sub

Private Sub cmdDelSection_Click()
    'provide a way to delete a section
    Dim eRet As VbMsgBoxResult
    eRet = MsgBox("Are you sure you want to delete this section?", vbYesNo)
    If eRet = vbYes Then
        mcXML.Section = txtSection.Text
        mcXML.DeleteSection
        RefreshList
    End If
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    Set mcXML = Nothing
End Sub

Private Sub mnuFile_Click(Index As Integer)
    On Error GoTo ErrHandler
    Dim sFile As String
    Dim sXMLFile As String
    
    'set properties for common dialog
    With cdlFile
        .CancelError = True
        .Flags = cdlOFNHideReadOnly + cdlOFNOverwritePrompt
    End With
    
    Select Case Index
        Case 0  'Open
            With cdlFile
                .Filter = cdOpenFilter
                .FilterIndex = 2
                .ShowOpen
                sFile = .FileName
            End With
            'if the file is an INI file convert to XML
            If LCase$(Right$(sFile, 3)) = "ini" Then
                'this will be same filename with ".xml" extension
                'ie. sample.ini becomes sample.ini.xml
                mcXML.IniToXml sFile, sXMLFile
                msFilename = sXMLFile
            Else
                msFilename = sFile
            End If
            RefreshList
        Case 1  'Save As
            With cdlFile
                .Filter = cdSaveFilter
                .FilterIndex = 1
                .ShowSave
                sFile = .FileName
            End With
            If msFilename <> vbNullString Then
                'have a current filename but save it as a new filename
                FileCopy msFilename, sFile
            Else
                'we do not have a current file so first we need to kill the old
                Kill sFile
            End If
            msFilename = sFile
        Case 3  'View
            ShellExecute 0, "open", msFilename, vbNullString, vbNullString, SW_SHOW
        Case 5  'Exit
            Unload Me
    End Select
    If msFilename <> vbNullString Then
        mnuFile(1).Enabled = True
        mnuFile(3).Enabled = True
        cmdDelSection.Enabled = True
        cmdDelKey.Enabled = True
        cmdView.Enabled = True
    End If
    Exit Sub
ErrHandler:
    If Err.Number <> 32755 Then
        If Err.Number = 53 Then
            Resume Next
        End If
        'user did not cancel
        Debug.Print Err.Number & ": " & Err.Description
    End If
End Sub

Private Sub mnuHelp_Click(Index As Integer)
    Select Case Index
        Case 0
            MsgBox "INI XML Editor was written by Jim Kahl"
        Case 1
            ShellExecute 0, "open", App.Path & "\readme.doc", vbNullString, vbNullString, SW_SHOW
    End Select
End Sub

Private Sub tvwSettings_Click()
    On Error Resume Next
    With mcXML
        If tvwSettings.Nodes(tvwSettings.SelectedItem.Text).Children = 0 Then
            'this is for when someone clicks the key name
            .Section = tvwSettings.SelectedItem.Parent.Text
            .Key = tvwSettings.SelectedItem.Text
            txtSection.Text = .Section
            txtSectDesc.Text = .SectionDescription
            txtKey.Text = .Key
            txtKeyDesc.Text = .KeyDescription
            txtValue.Text = .Value
        Else
            'this is for when someone clicks just a section name
            .Section = tvwSettings.SelectedItem.Text
            txtSection.Text = .Section
            txtSectDesc.Text = .SectionDescription
            txtKey.Text = vbNullString
            txtKeyDesc.Text = vbNullString
            txtValue.Text = vbNullString
        End If
    End With
End Sub

'****************************************************************************************
'METHODS - PRIVATE
'****************************************************************************************
Private Sub RefreshList()
    Dim sSection() As String
    Dim sKey() As String
    Dim lCount As Long
    Dim lSection As Long
    Dim lKey As Long
    
    On Error GoTo ErrHandler
    
    tvwSettings.Nodes.Clear
    
    'fill the tree view with the Section and Key nodes from the XML file
    With mcXML
        .Path = msFilename
        'EnumerateAllSections will error out if this is a new file or if
        'the file does not contain any Sections - that is ok for now, it
        'just means there is nothing at this time to populate the treeview
        .EnumerateAllSections sSection(), lCount
        For lSection = LBound(sSection) To UBound(sSection)
            tvwSettings.Nodes.Add , , sSection(lSection), sSection(lSection)
            .Section = sSection(lSection)
            'EnumerateCurrentSection will error out if the Section does not
            'have any Keys associated with it, but that's ok since we want to
            'be able to add and delete keys at will
            .EnumerateCurrentSection sKey(), lCount
            For lKey = LBound(sKey) To UBound(sKey)
                .Key = sKey(lKey)
                tvwSettings.Nodes.Add sSection(lSection), tvwChild, , sKey(lKey)
            Next lKey
            tvwSettings.Nodes(sSection(lSection)).Expanded = True
        Next lSection
    End With
    tvwSettings.Nodes(1).Selected = True
    tvwSettings_Click
ErrHandler:
'    Debug.Print Err.Number & ": " & Err.Description
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成va人片在线观看| 国产九色sp调教91| 欧美性色综合网| 亚洲自拍偷拍网站| 欧美福利视频导航| 精品中文字幕一区二区小辣椒| 欧美刺激午夜性久久久久久久| 九色综合国产一区二区三区| 久久网这里都是精品| 成人av资源网站| 亚洲一区二区视频在线观看| 欧美一级理论片| 国产精品99久久久| 中文字幕一区二区视频| 欧美日韩一区二区三区四区五区| 日韩国产欧美视频| 国产欧美日韩视频在线观看| 成人app在线| 日本人妖一区二区| 中文字幕制服丝袜一区二区三区 | 图片区小说区国产精品视频| 欧美一区二区三区四区五区| 高清av一区二区| 亚洲图片欧美色图| 国产欧美日韩激情| 欧美日韩国产综合一区二区| 国产自产视频一区二区三区| 亚洲欧美日韩中文播放 | 国产高清成人在线| 亚洲一区二区精品视频| 日韩精品专区在线影院观看| 91在线视频网址| 久久99久国产精品黄毛片色诱| 国产精品久久久久国产精品日日| 9191国产精品| 日本电影亚洲天堂一区| 国产一区二区不卡在线| 一区二区三区在线视频免费| 久久久久久综合| 欧美日韩三级在线| 成人免费av在线| 麻豆91精品91久久久的内涵| 亚洲精品免费电影| 国产日产欧产精品推荐色| 7777女厕盗摄久久久| caoporm超碰国产精品| 717成人午夜免费福利电影| 国产成人在线色| 久久99在线观看| 首页国产丝袜综合| 亚洲视频一区二区在线观看| 久久欧美中文字幕| 日韩欧美第一区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | av一区二区三区四区| 国产美女精品一区二区三区| 婷婷开心激情综合| 亚洲专区一二三| 亚洲私人黄色宅男| 亚洲欧洲日韩在线| 国产精品蜜臀在线观看| 久久免费电影网| 2020国产精品久久精品美国| 欧美一级生活片| 欧美精品第1页| 91.com在线观看| 91精品国产综合久久精品麻豆| 欧美网站一区二区| 在线观看日韩国产| 日本丰满少妇一区二区三区| 色婷婷综合久久久久中文 | 成人免费视频caoporn| 国产盗摄一区二区三区| 久久国产精品第一页| 日本v片在线高清不卡在线观看| 五月天激情小说综合| 五月综合激情日本mⅴ| 日韩在线播放一区二区| 日本中文字幕不卡| 美女网站在线免费欧美精品| 男人的天堂亚洲一区| 裸体健美xxxx欧美裸体表演| 麻豆精品一区二区| 韩国欧美一区二区| 2017欧美狠狠色| 久久精品视频免费| 国产精品色哟哟网站| 中文字幕一区免费在线观看| 一区二区激情小说| 日韩精品欧美精品| 国产剧情一区二区三区| 国产aⅴ综合色| 91在线看国产| 欧美日韩一区二区三区不卡| 欧美疯狂性受xxxxx喷水图片| 日韩欧美国产高清| 久久精品一区二区三区不卡牛牛| 亚洲国产电影在线观看| 亚洲丝袜美腿综合| 日本亚洲视频在线| 粉嫩av一区二区三区在线播放| 99国产精品一区| 91精品在线免费| 久久久国产精品不卡| 中文字幕一区二区三区av| 亚洲乱码日产精品bd| 日韩电影免费在线| 成人激情免费电影网址| 欧美性感一区二区三区| 精品久久人人做人人爰| 亚洲欧美日韩国产另类专区| 视频在线观看一区| 成人av集中营| 欧美一卡2卡三卡4卡5免费| 国产喂奶挤奶一区二区三区| 一区二区三区免费网站| 久久精品国产99国产| 国产欧美一区二区精品性色超碰 | 欧美男生操女生| 久久综合久久综合久久| 亚洲欧美区自拍先锋| 国产一区二区在线影院| 在线一区二区三区四区五区| 精品国产亚洲在线| 一区二区三区.www| 国产成人免费在线观看不卡| 911精品国产一区二区在线| 中文字幕中文字幕中文字幕亚洲无线| 午夜在线成人av| 成人黄色在线看| 日韩免费看网站| 亚洲国产视频直播| 成人免费视频视频在线观看免费| 日韩一级完整毛片| 亚洲一区中文日韩| 99在线精品一区二区三区| 日韩欧美一二三| 午夜影院在线观看欧美| 色婷婷综合激情| 国产精品福利一区| 国产成人欧美日韩在线电影 | 精品电影一区二区三区| 亚洲国产精品一区二区www| 99精品久久久久久| 欧美高清在线视频| 黄网站免费久久| 日韩欧美在线观看一区二区三区| 亚洲综合在线视频| 91美女片黄在线观看91美女| 中文欧美字幕免费| 成人性生交大片免费看中文| 亚洲精品在线电影| 久久av中文字幕片| 欧美电视剧在线看免费| 日韩电影在线观看一区| 欧美日韩国产小视频| 亚洲国产视频一区二区| 91小视频在线免费看| 中文字幕一区日韩精品欧美| 成人午夜伦理影院| 国产精品久久久久毛片软件| 国产激情一区二区三区四区| 久久久久久久久久电影| 国产露脸91国语对白| 久久久久综合网| 夫妻av一区二区| 国产精品―色哟哟| av不卡在线观看| 亚洲色图在线播放| 91麻豆免费在线观看| 一区二区三区中文字幕| 欧美日韩免费在线视频| 天天影视涩香欲综合网| 欧美一级片在线观看| 美女视频一区二区三区| 亚洲精品一区二区在线观看| 国产毛片精品一区| 中文字幕在线视频一区| 91免费观看国产| 亚洲午夜在线观看视频在线| 欧美人妇做爰xxxⅹ性高电影| 全国精品久久少妇| 久久婷婷久久一区二区三区| 国产69精品一区二区亚洲孕妇 | 欧美日本视频在线| 日韩av中文字幕一区二区| 欧美一级日韩免费不卡| 国产成人精品午夜视频免费| 亚洲天堂中文字幕| 在线91免费看| 成人午夜电影久久影院| 亚洲在线观看免费视频| 日韩精品一区二区三区视频| 风间由美一区二区av101| 亚洲精品一二三四区| 欧美一区二区福利视频| 国产超碰在线一区| 一区二区三区不卡视频在线观看 | 国产日韩欧美精品一区| www.视频一区|