|
-
December 3rd, 2004, 05:23 PM
#1
ContainsFocus == broken?
Hi Folks,
I searched the forum for this and came up empty.
I'm trying to use the .ContainsFocus property to find out if something in my form has focus, and it always comes back false, even when I am currently typing on the form...
here's the code I have:
in this code 'this' is a regular System.Windows.Forms Form
Code:
if(!this.ContainsFocus)
{
this.FlashChatWindow();
SoundPlayer.Play(iimc.NewMessageArrivalSound);
}
since it's always false it always beeps and flashes, even when you're typing in it.
Has anyone else ever used this and had it work? What am I missing? Thanks for your time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|