[技巧]如何導(dǎo)出Imagelist的圖標(biāo)或圖片到文件
時(shí)間:2013-07-16 00:36 來源:Office中國 作者:Access中國錄入員 閱讀:次
如果你從mscomctl.ocx 5.0升級(jí)到6.0,但如果你的imagelist原來有很多圖片或圖標(biāo)的話,如果導(dǎo)出來或再導(dǎo)入到6.0控件呢
可使用以下代碼來實(shí)現(xiàn)(我在access2003通過實(shí)現(xiàn)--tmtony access中國)
Dim imgCtr As ImageList
可使用以下代碼來實(shí)現(xiàn)(我在access2003通過實(shí)現(xiàn)--tmtony access中國)
Dim imgCtr As ImageList
Dim myPic As Picture
'可加個(gè)循環(huán)
Set imgCtr = ImageList0.Object
Set myPic = imgCtr.ListImages(1).ExtractIcon
SavePicture myPic, "c:\1.ico"
Set myPic = imgCtr.ListImages(2).ExtractIcon
SavePicture myPic, "c:\2.ico"
Set myPic = imgCtr.ListImages(3).ExtractIcon
SavePicture myPic, "c:\3.ico"
Set myPic = imgCtr.ListImages(4).ExtractIcon
SavePicture myPic, "c:\4.ico"
Set myPic = imgCtr.ListImages(5).ExtractIcon
SavePicture myPic, "c:\5.ico"
Set myPic = imgCtr.ListImages(6).ExtractIcon
SavePicture myPic, "c:\6.ico"
Set myPic = imgCtr.ListImages(7).ExtractIcon
SavePicture myPic, "c:\7.ico"
Set myPic = imgCtr.ListImages(8).ExtractIcon
SavePicture myPic, "c:\8.ico"
但圖標(biāo)顏色會(huì)失真,下次再完善一下
(責(zé)任編輯:admin)
頂一下
(2)
100%
踩一下
(0)
0%
相關(guān)內(nèi)容
- ·注冊(cè)ActiveX控件的幾種方法
- ·在Access2003或以上版本使用RichTX32.O
- ·快速注冊(cè)DLL和OCX的方法【技巧】
- ·Access的Treeview在 MS10-036 更新后無
- ·在安全補(bǔ)丁Security Advisory 960715
- ·Access2010使用Treeview出現(xiàn)問題的解決
- ·Access中使用TreeView 樹形控件 詳細(xì)講
- ·Access中treeview不能使用或提示沒有版
- ·The Kill-Bit FAQ: Part 3 of 3
- ·The Kill-Bit FAQ: Part 2 of 3
- ·The Kill-Bit FAQ: Part 1 of 3
- ·ACCESS EXCEL 一個(gè)增強(qiáng)Treeview 節(jié)點(diǎn)編
- ·windows 7或其它windows 64位系統(tǒng)里Tre
- ·Access Treeview 樹控件MSCOMCTL.OCX
- ·[技巧]如何導(dǎo)出Imagelist的圖標(biāo)或圖片
- ·Access中使用身份證讀卡器的技巧
最新內(nèi)容
- ·注冊(cè)ActiveX控件的幾種方法
- ·在Access2003或以上版本使用RichTX32.OCX R
- ·快速注冊(cè)DLL和OCX的方法【技巧】
- ·Access的Treeview在 MS10-036 更新后無法使
- ·在安全補(bǔ)丁Security Advisory 960715 更新
- ·Access2010使用Treeview出現(xiàn)問題的解決辦法
- ·Access中使用TreeView 樹形控件 詳細(xì)講解(E
- ·Access中treeview不能使用或提示沒有版權(quán)(L
- ·The Kill-Bit FAQ: Part 3 of 3
- ·The Kill-Bit FAQ: Part 2 of 3
推薦內(nèi)容