Solved

ListBox - Background Image

Posted on 2004-04-01
2
488 Views
Last Modified: 2013-12-25
Is there anyway to have a background image to a listbox?  If there is no way, is there atleast any ActiveX for this?

Thanks
Srik
0
Comment
Question by:vi_srikanth
2 Comments
 
LVL 5

Accepted Solution

by:
Alok-Agarwal earned 75 total points
ID: 10731334
Hi srikanth,

You can get the desired result by subclassing Listboxes.

Kindly visit the URL

http://www.elitevb.com/content/01,0007,01/

and you will find loads of articles dedicated to subclassing of List boxes.

I hope that would definitely help you.

Thanks
Alok
0
 
LVL 4

Author Comment

by:vi_srikanth
ID: 10738549
Hi Alok

I'm using VBA for MS Word.  In that i dont have the ".Handle" property for images/pictures.  Hence it doesn't work there.

Is there any other way? i.e. is there any other api or is there any other way to get the ".Handle" value of an image control in VBA?  I faced a similar problem in VBA: There is no ".hWnd" property for forms.  But there is an api thru which we can get that value.

Thanks
Srik
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now