Re: Change Access Background

From: Stephen Lebans (ForEmailGotoMy.WebSite.-WWWdotlebansdotcom_at_linvalid.com)
Date: 07/08/04

  • Next message: Richard Walker: "Access 97 Runtime on Windows XP - "Disk or Network Error""
    Date: Thu, 8 Jul 2004 14:38:32 -0300
    
    

    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.
    "Berny" <BlancoB at MSN dot Com> wrote in message
    news:#BMSRpQZEHA.3564@TK2MSFTNGP11.phx.gbl...
    > 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?
    >
    > "Stephen Lebans"
    <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
    > wrote in message news:%23zPLLrEZEHA.4008@TK2MSFTNGP09.phx.gbl...
    > > 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.
    > >
    > >
    > > "Brendan Reynolds" <brenreyn at indigo dot ie> wrote in message
    > > news:OetfbtCZEHA.1356@TK2MSFTNGP09.phx.gbl...
    > >> 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.
    > >>
    > >>
    > >> "Berny" <BlancoB at MSN dot Com> wrote in message
    > >> news:OulZpkCZEHA.1356@TK2MSFTNGP09.phx.gbl...
    > >> > Not on the form, I'm trying to change the background on Access
    > >> >
    > >> > "Jackie L" <JackieL@discussions.microsoft.com> wrote in message
    > >> > news:BF22DBFE-9FE9-42E1-8483-503915E6931C@microsoft.com...
    > >> > > On your Form properties, under Picture, you can browse to a
    file
    > > for
    > >> your
    > >> > background.
    > >> > >
    > >> > > Hope this helps.
    > >> > >
    > >> > > "Berny" wrote:
    > >> > >
    > >> > > > Can anyone tell me if it is possible to change the Access
    gray
    > >> > background to
    > >> > > > have a jpeg image?
    > >> > > >
    > >> > > >
    > >> > > >
    > >> >
    > >> >
    > >>
    > >>
    > >
    >
    >
    

  • Next message: Richard Walker: "Access 97 Runtime on Windows XP - "Disk or Network Error""