473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Extracting icons from command buttons

A friend gave me a copy of an access database he was working on a few years
back. Its similar to what I want to design so I'm using is as a starting
point. Problem is, he used some need images on many of his command buttons.
They are embedded in the database. On the properties window, it tells me
where they were originally located on the hard drive. Great, except my buddy
doesn't have them on his hard drive anymore! Is there any way to extract
them from the buttons?
Oct 23 '06 #1
1 4262
There is a SysCmd call that allows you to create an IPictureDisp for an
Image control, or for any control that exposes a PictureData property. You
can them simply call the SavePicture method of that interface to save the
Image to a disk based Bitmap.

Here is the sample code behind the Click event of a Command Button named
Command0.

Private Sub Command0_Click()
On Error GoTo Err_Command0_Click
Dim pic As stdole.IPictureDisp
Set pic = SysCmd(712, Me.Command0)

SavePicture pic, "C:\ZZ.bmp"

Exit_Command0_Click:
Exit Sub

Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click

End Sub
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Rad Daddy" <no**@none.comwrote in message
news:1O******************@fe04.news.easynews.com.. .
>A friend gave me a copy of an access database he was working on a few years
back. Its similar to what I want to design so I'm using is as a starting
point. Problem is, he used some need images on many of his command buttons.
They are embedded in the database. On the properties window, it tells me
where they were originally located on the hard drive. Great, except my
buddy doesn't have them on his hard drive anymore! Is there any way to
extract them from the buttons?

Oct 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill W. | last post by:
Trying to make the transition from VBA in MS Access 2000 to VB6. I noticed that the icons for the command buttons in Access are apparently not available in the VB6 environment. Am I missing...
3
by: Mairhtin O'Feannag | last post by:
Hello, Please don't excoriate me, but i have what may be a simple question. I want to make and application that uses icons as buttons, but I cannot find an example of how to do this. Can...
2
by: Deano | last post by:
Where is the file that holds the icons in Access 2000? I'm suffering from the old "object variable or with block variable not set" problem and so I need to browse to where the icons are. ...
1
by: John Holmes | last post by:
I have some icons that I used in a VB6 program several years ago and I'd like to use the same icons in a newer C# windows forms app. I haven't been able to find the icons which are common icons for...
3
by: Al | last post by:
Hi All, I am trying to get a 24x24 "Windows XP" icon to display correctly on a button in my toolbar. My icon has 8 layers (16x16, 16x16, 24x24, 24x24, 32x32, 32x32, 48x48, 48x48) with each size...
1
by: goss9394 | last post by:
Hi all - Anyone know where the record navigation icons are stored? ..dll (I can extract using Icon Extractor) ..gif in some folder? Using Office 11 Visual Studio 2003 Thanks
7
by: Dave | last post by:
Hello All, These one may be a bit tricky, and what I'd like to do may not even be possible. I would love to hear any ideas you guys have for solving this. Here is the situation: I have a form...
4
by: Ant | last post by:
Hi all, My kids have a bunch of games that have to be run from CD (on Windows XP). Now they're not very careful with them, and so I have a plan. I've downloaded a utility (Daemon Tools) which...
1
by: drewski526 | last post by:
Hi, I wrote a small part of a larger program, and oddly enough, when i try to run it, the icons spontaneously appear and disappear when i mouse over them. background_img =...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.