?
Solved

vnc window unable to be closed with vb application

Posted on 2003-03-23
3
Medium Priority
?
203 Views
Last Modified: 2010-05-01
I'm trying to make a vnc interface (realvnc 3.3.7) in Visual Basic 6 (sp5)
With a click vncviewer is launched and connected to a specific server (eg 'PC1') : it works perfectly well

I'm trying to close the vnc window (eg title = 'PC1') with
appactivate "PC1", true
DoEvents
sendkeys "%{F4}",true

but it doesn't work

After retrieving correct PID and hWnd I've then tried with closehandle or DestroyWindow or SendMessage API functions but still doesn't work...

What the hell ?

Note : Typing ALT + F4 has no effect on such window...
0
Comment
Question by:Wintz
[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
3 Comments
 

Accepted Solution

by:
Wintz earned 0 total points
ID: 8193393
Sorry, but I found the answer using :

ShowWindow(hWnd, 0)


Thks a lot...
0
 

Expert Comment

by:CleanupPing
ID: 8531796
Hi Wintz,
This old question (QID 20560148) needs to be finalized -- no Experts commented, so delete it and get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 8958811
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-->PAQ - with points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

GPrentice00
EE Cleanup Volunteer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
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…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

801 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