Solved

Refreshing the Win95 Enviroment

Posted on 1998-07-28
4
213 Views
Last Modified: 2010-05-03
Is there a command from VB5 that'll refresh the Win95 Enviroment including the taskbar, the desktop, etc.?
0
Comment
Question by:ChrisH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:shchuka
ID: 1466960
Not directly in VB, but you can do that using API calls.

Use GetDesktopWindow call to get the handle of the desktop window and then
there's another api (I'm not sure the name) to make the window to repaint itself.
0
 
LVL 1

Author Comment

by:ChrisH
ID: 1466961
How do I do that?  How do I find out the name of the other API call?
0
 
LVL 2

Accepted Solution

by:
shchuka earned 50 total points
ID: 1466962
Ok, here's what I would do.  (I didn't test this code.)

REM in declaration section
Declare Function GetDesktopWindow& Lib "user32" Alias "GetDesktopWindow" ()
Declare Function UpdateWindow& Lib "user32" (ByVal hwnd&)

REM where you need the stuff to be done
dim desktop as long
dim dummy as long

destkop = GetDesktopWindow()
dummy = UpdateWindow(desktop)

Good luck
0
 
LVL 1

Author Comment

by:ChrisH
ID: 1466963
Yea.. I just figured it and tested it AS I heard the Outlook new mail beep.  Pretty funny.. thanks for the help..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question