Solved

windows handle

Posted on 1998-05-28
6
166 Views
Last Modified: 2010-05-03
dear sir,

how can l make a program running in background stay in taskbar, never show on top windows and never receive windows handle, just works in background. for example, l would like to write a program that running in background stay in taskbar,every second of times, the caption of the form will be change, but l dont want the form show out on top windows.l've tried to set the form to minimize property, but when the program about to changed the text in caption then the form will get the windows handle and show out on top. please help !!!
0
Comment
Question by:e_aks
  • 3
  • 2
6 Comments
 

Author Comment

by:e_aks
ID: 1461863
Edited text of question
0
 
LVL 1

Expert Comment

by:JayMerritt
ID: 1461864
I've done caption updating on minimized forms before without having them "pop-up".  I use this to show work in process.

What does the Window Handle have to do with all this?
0
 
LVL 6

Accepted Solution

by:
clifABB earned 40 total points
ID: 1461865
The best that can be done is to put the following code in your form's resize event:
Private Sub Form_Resize()

  If Me.WindowState <> vbMinimized Then
    Me.WindowState = vbMinimized
  End If
End Sub

0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:e_aks
ID: 1461866
oh..yeah it is works, but not what l expected, ok...tell you what l'm doing. l would like to write a program that download the files from my home pages ftp server. l want the program automatically do for me in background. so when the files is downloaded, then the caption of the form will be display the numbers of files has been downloaded. but unfortunary, l tried to open the nescape broswer to surffing the net and execute this program to downloaded the files at the same time,  when l works with the broswer,so it is mean the broswer windows is getting the windows handle and activating, right ? and then if the files is downloaded by my program, at this time, the windows handle will turn to my program and activating my program, right.so this is my problems. because when l works with the broswer, then suddenly the broswer windows would be lost the handle or deactived. whereas my program would be getting activating. what l wants is never activate my program.
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1461867
On the form that is displayed, set the enabled property = false.  This will prevent your form from ever getting the focus.
0
 

Author Comment

by:e_aks
ID: 1461868
no..it doesn't works, any suggestion ?
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 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