Results 1 to 3 of 3

Thread: Event when form gets focus

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Germany
    Posts
    17

    Question

    Hi everybody,

    I've got a form with many controls, that is the only form in my application. In the form there is a ListView with the files of one folder. If I go to the Windows-Explorer and rename the files and go back to my app I want the list to be refreshed. But I cannot find a event which occurs when I come back to my app. Form_Activate and Form_GotFocus don't run.
    Thanks for help.

    Frank
    VB-progress: -> -> ->

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Subclass WM_APPACTIVATE, and if wParam <> 0 then your app has been activated, so call the event from there.
    Courgettes.

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width