Change Access Background

  • Thread starter Thread starter Berny
  • Start date Start date
B

Berny

Can anyone tell me if it is possible to change the Access gray background to
have a jpeg image?
 
There's code to do this at the following URL ...

http://www.mvps.org/access/api/api0035.htm

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
There's also a solution here that does not require subclassing.
http://www.lebans.com/changemdibackground.htm
Updated May 03,2003 Now allows you to select a Bitmap Image to place in
the background of the MDI window. No Subclassing required

ChangeMDIBackGround.zip is a database containing a function to allow you
to specify a color or Bitmap Image for the background of the main Access
MDI window. NO SUBCLASSING REQUIRED!

Release Notes:

Version 3

Added support to allow you to specify a Bitmap Image to be placed into
the background of the MDI window.

Version 2

Added support to change the Background and Text colors for the Access
Status Bar.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
I downloaded the file "A97ChangeMDIBackgroundVer8" from your site and I
converted it to Access 2002 and it appears to be able to do what I'm trying
to do, BUT!

I don't known enough programming to get it to do what I need exactly.

I'm trying to set the Background to one specific image when I open the
application.

It is always going to be the same image.

Can you tell me where and have to put the permanent image Path and name?
 
If you look at the code behind the CommandButton you will see:

Private Sub cmdChangeMDI_Click()
Dim blRet As Boolean
' Since we are not passing a filename of a Bitmap file
' the standard Window File Dialog will popup.
blRet = SetMDIBackGroundImage()
End Sub

The SetMDIBackGroundImage Sub is coded to take an optional string
parameter to specify a filename. If you do not pass a filename then the
standard Windows File Dialog is opened for the user to select a file.
So to specify a file simply pass a valid string containing the full path
and filename of the desired image.

Private Sub cmdChangeMDI_Click()
Dim blRet As Boolean
' Since we are not passing a filename of a Bitmap file
' the standard Window File Dialog will popup.
blRet = SetMDIBackGroundImage("C:\1.bmp")
End Sub



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Thank you
VERY MUCH!!!!!!

That took care of the problem.

One last thing, If I'm only going to be changing the background do I need
all of the Modules?

modChangeMDI
cDIBSection
clsCommonDialog

Also I noticed that module cDIBSection refers to Jpeg images, does that mean
that Jpeg's can also be used, or is it limited to Bitmaps only?

Again Thank you Very much
 
Back
Top