access97to2000
Programmer
Hi,
how can i add images to a imagelist at runtime ?
i tried this way, but its giving me a "Type mismatch" error:
Dim mgx As Integer
Dim abc As String
mgx = ImageList1.ListImages.Count
abc = CStr(App.Path & "\images\firewo.ico"
Set imgx = ImageList1.ListImages.Add(, , abc)
mgx is giving me the number of images already there in imagelist
but the set imgx .... part is giving me error. please help me out.
thanks
rk
how can i add images to a imagelist at runtime ?
i tried this way, but its giving me a "Type mismatch" error:
Dim mgx As Integer
Dim abc As String
mgx = ImageList1.ListImages.Count
abc = CStr(App.Path & "\images\firewo.ico"
Set imgx = ImageList1.ListImages.Add(, , abc)
mgx is giving me the number of images already there in imagelist
but the set imgx .... part is giving me error. please help me out.
thanks
rk