Solved

Restore an Application

Posted on 2003-12-08
1
153 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now