Results 1 to 2 of 2

Thread: Active window title

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Active window title

    how could i get the active window that text was typed in. So if they typed somthing in IE it would show as

    [Internet Explorer] - Whatever they typed

    I no this can be done...but how?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Active window title

    You'd need to use API functions, as you virtually always do when dealing with windows external to your application. You would use GetForegroundWindow to get a handle to the active window and GetWindowText to get its title bar text. I'm sure you'd find examples of using each with a forum search.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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