NEVER USED IN LISTIEW

User avatar
sal21
PlatinumLounger
Posts: 4355
Joined: 26 Apr 2010, 17:36

NEVER USED IN LISTIEW

Post by sal21 »

i just have imagelist1 with 31 icon.
how to show all icon in listview as thumbnail?

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: NEVER USED IN LISTIEW

Post by HansV »

Please explain what you mean.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4355
Joined: 26 Apr 2010, 17:36

Re: NEVER USED IN LISTIEW

Post by sal21 »

HansV wrote:
10 Mar 2022, 08:21
Please explain what you mean.
Naturally with my icon in imagelist1
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: NEVER USED IN LISTIEW

Post by HansV »

Do you have a specific reason for wanting to do this with a listview control?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4355
Joined: 26 Apr 2010, 17:36

Re: NEVER USED IN LISTIEW

Post by sal21 »

HansV wrote:
10 Mar 2022, 11:44
Do you have a specific reason for wanting to do this with a listview control?
NO reason for wanting to do this with a listview control..

Oter way?

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: NEVER USED IN LISTIEW

Post by HansV »

You could use an array of image controls.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4355
Joined: 26 Apr 2010, 17:36

Re: NEVER USED IN LISTIEW

Post by sal21 »

HansV wrote:
10 Mar 2022, 13:30
You could use an array of image controls.
???

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: NEVER USED IN LISTIEW

Post by HansV »

Place an image control on the form. Copy and paste it 30 times. You now have a control array of 31 images.
Loop through the images of the imagelist control and assign them one by one to an image control.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4355
Joined: 26 Apr 2010, 17:36

Re: NEVER USED IN LISTIEW

Post by sal21 »

HansV wrote:
10 Mar 2022, 14:54
Place an image control on the form. Copy and paste it 30 times. You now have a control array of 31 images.
Loop through the images of the imagelist control and assign them one by one to an image control.
HUMMMM...
the number of icon in imagelist are variable, problem!

User avatar
SpeakEasy
4StarLounger
Posts: 550
Joined: 27 Jun 2021, 10:46

Re: NEVER USED IN LISTIEW

Post by SpeakEasy »

You can dynamically add controls at run time ...