Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / February 2006



Tip: Looking for answers? Try searching our database.

destroying a window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Web Search Store - 27 Feb 2006 21:33 GMT
I have been trying various methods to destroy windows, but can't seem to
make them work.  I can set focus api correctly, and bring the application to
the foregrounds, but destroywindow doesn't kill the window.

Does anyone have an example for this that really works?

Thanks.

Scott Baxter

 Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long)
As Long

 hHandle = FindWindowEx(0&, 0&, vbNullString,   "File Download")
Call DestroyWindow(hHandle)
Ken Halter - 28 Feb 2006 16:17 GMT
>I have been trying various methods to destroy windows, but can't seem to
>make them work.  I can set focus api correctly, and bring the application
[quoted text clipped - 11 lines]
>  hHandle = FindWindowEx(0&, 0&, vbNullString,   "File Download")
> Call DestroyWindow(hHandle)

There's quite a few great samples here that may help.

Process Related
http://www.thescarms.com/vbasic/VBProcessRelated.asp

Window Related Functions
http://www.thescarms.com/vbasic/VBWindowFunctions.asp

Signature

Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.