Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
RaymondC  
#1 Posted : Monday, August 21, 2017 11:18:17 PM(UTC)
RaymondC

Rank: Advanced Member

Groups: Registered
Joined: 6/24/2013(UTC)
Posts: 95
Location: Seattle, WA

Thanks: 2 times
Was thanked: 2 time(s) in 1 post(s)
This is specific to Microsoft Access 2010.

I have a form with your ImageList control. I load the images I need. Then in VBA code, I want to set the .Picture property of a Button to one of the Index of the ImageList control. The .Picture property is expecting a file path but I was wondering if it was possible to use the ImageList control index instead.

Thanks.

Ray
RaymondC  
#2 Posted : Monday, August 21, 2017 11:43:16 PM(UTC)
RaymondC

Rank: Advanced Member

Groups: Registered
Joined: 6/24/2013(UTC)
Posts: 95
Location: Seattle, WA

Thanks: 2 times
Was thanked: 2 time(s) in 1 post(s)
From my online research, this doesn't seem to be possible in Access.

But I found another workaround that is quite a bit more convenient than my current method of stacked buttons with different images and toggling visibility. I create one hidden button on the form for each image I need. Then via VBA, I can set the .Picture property of one button to the .Picture property of another button.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.