Solved

windows handle

Posted on 1998-05-28
6
165 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

863 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

26 Experts available now in Live!

Get 1:1 Help Now