Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent form taking focus

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
i have a form that refreshes every minute, but i want to stop it taking the focus from other applications
How :)
 
I have the opposite problem - I can't get my form to take focus over the other windows.

I have tried:
form.ZOrder 0
and
form.SetFocus

Both are supposed to work, but neither did. I think the other program that I'm dealing with might be taking over.

If either of these commands are in your form, that would be your problem. Also check your form properties, such as AutoRedraw.
 
I wonder if it can fairly be said that "cut-n-paste" was a technological prerequisite for the internet to gain widespread acceptance.

I bet if strongm had been required to type out that URL .... nevermind.
 
i wouldnt be where i am without it :)

CGehlhausen have you tried focusing on a single element of the form, like a text box?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top