Re: referring to imagelists
Tech-Archive recommends: Speed Up your PC by fixing your registry
- From: "Martin H." <hkshk@xxxxxxx>
- Date: Sun, 04 Mar 2007 10:12:47 +0100
Hello Doug,
It works like this:
Dim c As Control
Dim imgL As ImageList
For Each c In Me.Controls
If TypeOf c is ImageList Then
imgL = CType(c, ImageList)
'... Your code here ...
End If
Next
Best regards,
Martin
Doug Glancy wrote:
How can I refer to the imagelists in a form? Something along the lines of:
dim imglist as Imagelist
For Each imglist in Me.Imagelists <----- except this doesn't exist
Thanks in advance,
Doug
.
Relevant Pages
- Re: referring to imagelists
... Dim iL As ImageList ... If TypeOf Me.components.ComponentsIs ImageList Then ... Doug Glancy wrote: ... I had tried that and it doesn't work, because the imagelists are not among the controls. ... (microsoft.public.dotnet.languages.vb) - Re: "lst" file does not work
... "Doug Glancy" wrote: ... When I run the program the hyperlinks are created too. ... Dim FName As String ... Dim MyPath As String ... (microsoft.public.excel.programming) - Re: no duplication please
... "Doug Glancy" wrote: ... > genererated when you try to add a duplicate key. ... >> Private Sub CommandOK_Click ... >> Dim NoDupes_test As New Collection ... (microsoft.public.excel.programming) - Re: Access References in Web Service type projects using the VSNET automation model
... Imports EnvDTE ... Public Function GetBuildOutPutWindow() As OutputWindowPane ... Dim l_bd As BuildDependency ... If TypeOf l_prac.Object Is VSLangProj.VSProject Then ... (microsoft.public.vsnet.general) - Re: Query created with code not working as intended
... the Tag property is not the same as the SmartTags property. ... Here is the code that I am trying to use that will create a query ... Dim C As Access.Control ... If TypeOf C Is Access.TextBox Or TypeOf C Is Access.ComboBox ... (microsoft.public.access.formscoding) |
|