Solved

Restore an Application

Posted on 2003-12-08
1
163 Views
Last Modified: 2010-05-03
Hi,

I'm trying to restore an application from a minimized state, but when I do this the app shutsdown?!?!?!

The code I use is:

Private Declare Function ShowWindow Lib "user32" (ByVal lhWnd As Long, _
    ByVal nCmdShow As Long) As Long

ShowWindow lhWnd, SW_RESTORE

What am I doing wrong?

I also use SetForegroundWindow and this works fine with this window.

Thanks.

0
Comment
Question by:Exsus
[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
1 Comment
 
LVL 26

Accepted Solution

by:
EDDYKT earned 90 total points
ID: 9897987
Have you tried

Const SW_SHOWNORMAL = 1
ShowWindow lhWnd, SW_SHOWNORMAL
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

734 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