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
Solved

windows handle

Posted on 1998-05-28
6
167 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Getting warning: You are about to delete 1 row(s) 9 52
Protecting vb6 & .Net code Obfuscation 18 150
Problem to With line 4 63
adding "ungroup sheets" to existing vbs code 5 28
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

808 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