Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Turning off Loading Image message in VBA

Discussion in 'Information Technology' started by aehchua@ntu.edu.sg, Oct 28, 2005.

  1. aehchua@ntu.edu.sg

    aehchua@ntu.edu.sg
    Expand Collapse
    Guest

    Hi,

    I'd like to know how to turn off the message "Loading <imagename>" when
    you set the picture property of an image to a new picture.

    I teach an introductory IT class to non-IT students. I'm trying to get
    the students to appreciate what programming is like without burdening
    them with variable assignments and declarations, etc.

    To do so, I wrote a little program called "coffee machine." Students
    are supposed to write a program to get the coffee machine to give
    customers what they want. The coffee machine has cups, water, coffee,
    milk, and sugar. Customers ask for their coffee with/without sugar. A
    sensor on a conveyor belt goes to the five dispensers (i.e., cups etc.)
    to check for availability and get the requisite item.

    The whole thing is implemented in a graphical interface. The problem
    is that every time I've got a new customer, or the sensor moves to
    another station, I'll get a message like "Loading
    c:\db\pictures\person1.gif" or "Loading c:\db\pictures\sensor.gif."
    The message only lasts for a microsecond. However, given the rate at
    which the sensor moves, the messages continuously block the screen.

    How do I turn such messages off? DoCmd.SetWarnings=False doesn't work.

    Cecil Chua
     
  2. Loading...

    Similar Threads Forum Date
    SciTech B-School Startup: Turning Coffee Grounds Into Food Breaking News Sep 2, 2013
    India School buses turning ‘Yellow Coffins’ in Punjab but who's bothered Breaking News Mar 4, 2013
    Why Homeless Britons Are Turning To The Sikh Community For Food... Sikh Sikhi Sikhism Feb 24, 2015
    Nature Turning Water into Gold Breaking News Aug 6, 2013
    Russell Brand-is he turning into a Sikh? Sikh Sikhi Sikhism Sep 20, 2012

  3. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    <aehchua@ntu.edu.sg> wrote in message
    news:1130458591.332127.251060@g44g2000cwa.googlegroups.com
    > Hi,
    >
    > I'd like to know how to turn off the message "Loading <imagename>"
    > when you set the picture property of an image to a new picture.
    >
    > I teach an introductory IT class to non-IT students. I'm trying to
    > get the students to appreciate what programming is like without
    > burdening them with variable assignments and declarations, etc.
    >
    > To do so, I wrote a little program called "coffee machine." Students
    > are supposed to write a program to get the coffee machine to give
    > customers what they want. The coffee machine has cups, water, coffee,
    > milk, and sugar. Customers ask for their coffee with/without sugar.
    > A sensor on a conveyor belt goes to the five dispensers (i.e., cups
    > etc.) to check for availability and get the requisite item.
    >
    > The whole thing is implemented in a graphical interface. The problem
    > is that every time I've got a new customer, or the sensor moves to
    > another station, I'll get a message like "Loading
    > c:\db\pictures\person1.gif" or "Loading c:\db\pictures\sensor.gif."
    > The message only lasts for a microsecond. However, given the rate at
    > which the sensor moves, the messages continuously block the screen.
    >
    > How do I turn such messages off? DoCmd.SetWarnings=False doesn't
    > work.
    >
    > Cecil Chua


    See this link:

    http://www.mvps.org/access/api/api0038.htm
    API: Suppress the "Loading Image" dialog

    If you take the registry approach, I think you have to modify a
    different key for each file type: JPEG, GIF, etc.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  4. Ken Snell [MVP]

    Ken Snell [MVP]
    Expand Collapse
    Guest

    Another way to "minimize" this occurrence is to always use a .bmp image and
    not a compressed one (.gif, .jpg, etc.).

    --

    Ken Snell
    <MS ACCESS MVP>

    "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    news:uzGx%23%2312FHA.472@TK2MSFTNGP15.phx.gbl...
    > <aehchua@ntu.edu.sg> wrote in message
    > news:1130458591.332127.251060@g44g2000cwa.googlegroups.com
    >> Hi,
    >>
    >> I'd like to know how to turn off the message "Loading <imagename>"
    >> when you set the picture property of an image to a new picture.
    >>
    >> I teach an introductory IT class to non-IT students. I'm trying to
    >> get the students to appreciate what programming is like without
    >> burdening them with variable assignments and declarations, etc.
    >>
    >> To do so, I wrote a little program called "coffee machine." Students
    >> are supposed to write a program to get the coffee machine to give
    >> customers what they want. The coffee machine has cups, water, coffee,
    >> milk, and sugar. Customers ask for their coffee with/without sugar.
    >> A sensor on a conveyor belt goes to the five dispensers (i.e., cups
    >> etc.) to check for availability and get the requisite item.
    >>
    >> The whole thing is implemented in a graphical interface. The problem
    >> is that every time I've got a new customer, or the sensor moves to
    >> another station, I'll get a message like "Loading
    >> c:\db\pictures\person1.gif" or "Loading c:\db\pictures\sensor.gif."
    >> The message only lasts for a microsecond. However, given the rate at
    >> which the sensor moves, the messages continuously block the screen.
    >>
    >> How do I turn such messages off? DoCmd.SetWarnings=False doesn't
    >> work.
    >>
    >> Cecil Chua

    >
    > See this link:
    >
    > http://www.mvps.org/access/api/api0038.htm
    > API: Suppress the "Loading Image" dialog
    >
    > If you take the registry approach, I think you have to modify a
    > different key for each file type: JPEG, GIF, etc.
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
     
  5. aehchua@ntu.edu.sg

    aehchua@ntu.edu.sg
    Expand Collapse
    Guest

    Ken Snell [MVP] wrote:
    > Another way to "minimize" this occurrence is to always use a .bmp image and
    > not a compressed one (.gif, .jpg, etc.).


    Thanks. This worked.

    FYI, the one involving DLL calls didn't work, because the images load
    quite quickly. Basically, they quit before timeout gets called.
    Disabling the gif option didn't work either (even after I rebooted the
    machine). I only have gifs (no photographs, only line art)

    Cecil Chua
     
  6. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    <aehchua@ntu.edu.sg> wrote in message
    news:1130479798.020879.270040@o13g2000cwo.googlegroups.com
    > Ken Snell [MVP] wrote:
    >> Another way to "minimize" this occurrence is to always use a .bmp
    >> image and not a compressed one (.gif, .jpg, etc.).

    >
    > Thanks. This worked.
    >
    > FYI, the one involving DLL calls didn't work, because the images load
    > quite quickly. Basically, they quit before timeout gets called.
    > Disabling the gif option didn't work either (even after I rebooted the
    > machine). I only have gifs (no photographs, only line art)


    If by "disabling the gif option" you mean setting the registry key as
    directed in that article I posted, I'm puzzled as to why it didn't work,
    as it has always worked before. However, so long as you found a
    workable solution, we're all happy.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  7. Stephen Lebans

    Stephen Lebans
    Expand Collapse
    Guest

    The OP is not changing the correct key or is not changing the value
    correctly.

    1) The Registry Key value must be "No" not "no".

    2) It depends how you are logged on to WinXP. I think if you have no other
    accounts setup on your machine and log on as Administrator then you can
    simply add the required Reg Key to:
    HKEY_LOCAL_MACHINE\Software\Microsoft\ Shared Tools\Graphics
    Filters\Import\JPEG\Options
    Remember you have to add the Key for each Image type you will be displaying
    in the Image control.

    If you have multiple acounts then you have to add the Reg Key to each
    seperate account or HKEY_CURRENT_USER. Something like that but I honestly
    don't remember for sure off the top of my head.

    --

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


    "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    news:%236GXBT92FHA.636@TK2MSFTNGP10.phx.gbl...
    > <aehchua@ntu.edu.sg> wrote in message
    > news:1130479798.020879.270040@o13g2000cwo.googlegroups.com
    >> Ken Snell [MVP] wrote:
    >>> Another way to "minimize" this occurrence is to always use a .bmp
    >>> image and not a compressed one (.gif, .jpg, etc.).

    >>
    >> Thanks. This worked.
    >>
    >> FYI, the one involving DLL calls didn't work, because the images load
    >> quite quickly. Basically, they quit before timeout gets called.
    >> Disabling the gif option didn't work either (even after I rebooted the
    >> machine). I only have gifs (no photographs, only line art)

    >
    > If by "disabling the gif option" you mean setting the registry key as
    > directed in that article I posted, I'm puzzled as to why it didn't work,
    > as it has always worked before. However, so long as you found a
    > workable solution, we're all happy.
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
     
  8. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdot@linvalid.com>
    wrote in message news:ebHa$i%232FHA.3420@TK2MSFTNGP15.phx.gbl
    > The OP is not changing the correct key or is not changing the value
    > correctly.
    >
    > 1) The Registry Key value must be "No" not "no".
    >
    > 2) It depends how you are logged on to WinXP. I think if you have no
    > other accounts setup on your machine and log on as Administrator then
    > you can simply add the required Reg Key to:
    > HKEY_LOCAL_MACHINE\Software\Microsoft\ Shared Tools\Graphics
    > Filters\Import\JPEG\Options
    > Remember you have to add the Key for each Image type you will be
    > displaying in the Image control.
    >
    > If you have multiple acounts then you have to add the Reg Key to each
    > seperate account or HKEY_CURRENT_USER. Something like that but I
    > honestly don't remember for sure off the top of my head.


    Thanks for the clarification, Stephen.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  9. aehchua@ntu.edu.sg

    aehchua@ntu.edu.sg
    Expand Collapse
    Guest

    This is probably it. I'm running this off of a "school" machine
    (although it is my personal office machine).

    In any case, the code I'm writing will eventually be used for a
    classroom activity. Given various awkwardnesses (e.g., having to
    change registry keys in n classrooms), the solution wasn't practically
    feasible.

    Cecil Chua
     
  10. Stephen Lebans

    Stephen Lebans
    Expand Collapse
    Guest

    Just add code to your application install routine that modifies the
    necessary registry keys.

    --

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


    <aehchua@ntu.edu.sg> wrote in message
    news:1130714254.712932.155870@g47g2000cwa.googlegroups.com...
    > This is probably it. I'm running this off of a "school" machine
    > (although it is my personal office machine).
    >
    > In any case, the code I'm writing will eventually be used for a
    > classroom activity. Given various awkwardnesses (e.g., having to
    > change registry keys in n classrooms), the solution wasn't practically
    > feasible.
    >
    > Cecil Chua
    >
     

Share This Page