国产探花免费观看_亚洲丰满少妇自慰呻吟_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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 贺州市| 东阳市| 克拉玛依市| 桃江县| 广南县| 鄂尔多斯市| 阿城市| 靖西县| 壤塘县| 双辽市| 河源市| 花莲市| 凤凰县| 阿坝县| 抚宁县| 庆安县| 江西省| 岳普湖县| 卢湾区| 金塔县| 荣成市| 隆尧县| 治县。| 钟祥市| 惠来县| 西乌| 扶沟县| 涡阳县| 武城县| 营山县| 读书| 永善县| 木兰县| 陕西省| 新巴尔虎左旗| 彭州市| 佛坪县| 冀州市| 商丘市| 永泰县| 土默特左旗|