国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

VB.NET里最方面的XP風格解決方案

2024-07-10 13:00:37
字體:
來源:轉載
供稿:網友
 

將以下代碼添加到initializecomponent()之后

on error resume next
        dim y as integer
        dim appname as string
        dim manfilename as string
        dim fullappexenameandpath as string
        fullappexenameandpath = application.executablepath
        y = application.startuppath.length
        ' y = fullappexenameandpath.lastindexof("")
        y = y + 1
        appname = fullappexenameandpath.substring(y, fullappexenameandpath.length - y)
        manfilename = appname & ".manifest"

        if system.io.file.exists(manfilename) = false then
            fileopen(1, manfilename, openmode.binary)
            fileput(1, "<?xml version='1.0' encoding='utf-8' standalone='yes'?>" & environment.newline)
            fileput(1, "<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestversion='1.0'>" & environment.newline)
            fileput(1, "<assemblyidentity version='1.0.0.0' processorarchitecture='x86' name='zx.exe' type='win32' />" & environment.newline)
            fileput(1, "<description>zxapplication</description>" & environment.newline)
            fileput(1, "<dependency>" & environment.newline)
            fileput(1, "<dependentassembly>" & environment.newline)
            fileput(1, "<assemblyidentity type='win32' name='microsoft.windows.common-controls' version='6.0.0.0' processorarchitecture='x86' publickeytoken='6595b64144ccf1df' language='*' />" & environment.newline)
            fileput(1, "</dependentassembly>" & environment.newline)
            fileput(1, "</dependency>" & environment.newline)
            fileput(1, "</assembly>" & environment.newline)
            fileclose(1)
        end if


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新龙县| 牙克石市| 大兴区| 右玉县| 邵东县| 清原| 黎平县| 芜湖市| 夏津县| 杭锦旗| 洞口县| 平乐县| 易门县| 安塞县| 肃南| 奇台县| 施秉县| 洛阳市| 拜城县| 新化县| 江山市| 通许县| 安西县| 蒙山县| 元江| 大荔县| 绵阳市| 吉林省| 阿克苏市| 望江县| 通山县| 阳江市| 正宁县| 涪陵区| 防城港市| 珠海市| 漠河县| 开远市| 中牟县| 松潘县| 海兴县|