Re: Window focus



On Wed, 8 Jun 2005 12:40:54 +0100, "Lindsay" <me@xxxxxxxx> wrote:

>I have a form with no caption or border. Is there a way to know when the
>form receives and loses focus.

The form's Activate and Deactivate events will fire when switching
active forms ~within~ your app.
Otherwise you would need to subclass the form and watch for the
WM_ACTIVATEAPP message as seen here...
http://vbnet.mvps.org/code/subclass/activation.htm


-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
.



Relevant Pages

  • Re: Formatting figures and captions
    ... Adding "text" before the picture by inserting a line break and formatting ... > next" (which is always the caption). ... > all which is equally puzzling) are missing the lower border. ... > border reappears) but the first one now is missing the lower border. ...
    (microsoft.public.word.formatting.longdocs)
  • Re: Formatting figures and captions
    ... caption) overlaps it and cuts it off. ... Adding "text" before the picture by inserting a line break and formatting ... all which is equally puzzling) are missing the lower border. ... border reappears) but the first one now is missing the lower border. ...
    (microsoft.public.word.formatting.longdocs)
  • Re: Formatting figures and captions
    ... If so, it will not be suppressed at the top of a page, causing the picture to be lower than it should be, and the following paragraph (in this case, the caption) overlaps it and cuts it off. ... all which is equally puzzling) are missing the lower border. ... border reappears) but the first one now is missing the lower border. ...
    (microsoft.public.word.formatting.longdocs)
  • Re: Tables under Firefox go wrong
    ... Firefox seems to be doing something odd with the caption element. ... border: 1px solid #A9A9A9; ... margin: 0 auto; ...
    (alt.html)
  • Re: Centred image with caption
    ... a black border and a caption. ... You can read more about the formatting models here: ... Instead of using a to make the border, ... Then give it width (accounting for the image, all margins and padding) and center it by making the left and right margins "auto." ...
    (alt.html)

Loading