Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

windows handle

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
e_aks
Asked:
e_aks
  • 3
  • 2
1 Solution
 
e_aksAuthor Commented:
Edited text of question
0
 
JayMerrittCommented:
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
 
clifABBCommented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
e_aksAuthor Commented:
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
 
clifABBCommented:
On the form that is displayed, set the enabled property = false.  This will prevent your form from ever getting the focus.
0
 
e_aksAuthor Commented:
no..it doesn't works, any suggestion ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now