By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,556 Members | 1,609 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,556 IT Pros & Developers. It's quick & easy.

form that releases focus?

P: n/a
A friend and I have worked together on a simple program for keeping track of
what we are doing, simply by popping up (at timed intervals) a small window
where we can enter some text that will be saved with a timestamp in an
xmlfile. This works great except for one thing.

First the sequence:

Every (adjustable) min it will pop up from hiding. (set to always on-top)
If it is ignored (no text entered it will go back into hiding after
(adjustable) sec.
If we enter text and hit enter it will record the text to an XML file and go
back into hiding.
(adjustable) min later it will pop up again to see if we need another entry.

The problem is this: After we enter some text and it hides, the next time it
pops up it grabs the focus. As a result we can be typing some code in
another window and suddenly we are typing it in this form. Is there any way
we can have it pop up, (set to always on top), Without haveing the focus
when we've entered text the previous time?

Thank you for your time.
E of E
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Erik,

You want to use that awfull topmost property that is in every form.
(This week there was somebody who used an Api for that, see that long thread
where Herfried was involved in). When it is on you can nog get it from your
screen. However maybe you can use it in a way that you set a relay in that
minute.

http://msdn.microsoft.com/library/de...pmosttopic.asp

I hope this helps,

Cor

"Erik Ekedahl" <ch*****@hotmial.com> schreef in bericht
news:42**********@spool9-east.superfeed.net...
A friend and I have worked together on a simple program for keeping track
of what we are doing, simply by popping up (at timed intervals) a small
window where we can enter some text that will be saved with a timestamp in
an xmlfile. This works great except for one thing.

First the sequence:

Every (adjustable) min it will pop up from hiding. (set to always on-top)
If it is ignored (no text entered it will go back into hiding after
(adjustable) sec.
If we enter text and hit enter it will record the text to an XML file and
go back into hiding.
(adjustable) min later it will pop up again to see if we need another
entry.

The problem is this: After we enter some text and it hides, the next time
it pops up it grabs the focus. As a result we can be typing some code in
another window and suddenly we are typing it in this form. Is there any
way we can have it pop up, (set to always on top), Without haveing the
focus when we've entered text the previous time?

Thank you for your time.
E of E

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.