How to specify built-in bitmaps in code

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

I would like to use the code below to specify by name a bitmap that is
presented in the dialog box when clicking on the 'bitmap' property. Is this
possible? The value "(none)" used below works fine to delete the bitmap.
Private Sub Form_Current()

pgCrisisPlan.Picture = "(Exclamation Point)"

If IsNull(memCrisisPlan) Then

pgCrisisPlan.Picture = "(none)"

End If

End Sub

Thanks,

Dean Slindee
 
If that's the Picture property of an Image Control, then you need the full
path and file name of the file. I expect that'd be the case with a Bound OLE
Control, but I don't use those. You can download example databases
illustrating three approaches to handling images in Access from
http://accdevel.tripod.com, along with an article discussing considerations
in choosing which to use, and a text file explaining some things about the
example database.

Larry Linson
Microsoft Access MVP
 
Hi Dean,

As Larry said if you Image control, we just need one code to specify the
bitmap picture:

Image4.Picture = "c:\Office2000.bmp"

Please feel free to reply to the threads if you have any concerns or
questions.


Sincerely,

Alick Ye, MCSD
Product Support Services
Microsoft Corporation
Get Secure! - <www.microsoft.com/security>

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| From: "Dean Slindee" <[email protected]>
| Subject: How to specify built-in bitmaps in code
| X-Tomcat-NG: microsoft.public.access.formscoding
|
| I would like to use the code below to specify by name a bitmap that is
| presented in the dialog box when clicking on the 'bitmap' property. Is
this
| possible? The value "(none)" used below works fine to delete the bitmap.
| Private Sub Form_Current()
|
| pgCrisisPlan.Picture = "(Exclamation Point)"
|
| If IsNull(memCrisisPlan) Then
|
| pgCrisisPlan.Picture = "(none)"
|
| End If
|
| End Sub
|
| Thanks,
|
| Dean Slindee
|
|
|
 
Back
Top