|
|
|
Click here to copy the following block | Private Declare Function ImageList_ReplaceIcon Lib "COMCTL32" (ByVal hImageList _ As Long, ByVal i As Long, ByVal hIcon As Long) As Long
Public Sub LoadImageList(ImageList As ImageList, ByVal FileName As String) Dim pb As New PropertyBag Dim varTemp As Variant Dim handle As Long Dim Li As ListImage Dim ImgLocal As Object If Len(Dir$(FileName)) = 0 Then Err.Raise 53 handle = FreeFile Open FileName For Binary As #handle Get #handle, , varTemp Close #handle pb.Contents = varTemp Set ImgLocal = pb.ReadProperty("IMG") For Each Li In ImgLocal.ListImages ImageList_ReplaceIcon ImageList.hImageList, Li.Index - 1, _ Li.Picture.handle Next End Sub |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|