Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ContainsFocus or Focused Property

Status
Not open for further replies.

BDRichardson

Programmer
Jul 23, 2003
46
0
0
GB
Hi,

Firstly, does anyone know whether the 'Focused' Property is different in any way to the 'ContainsFocus' Property?

Secondly, do anyone know of any issues with using the property. For example, on many occasions when I attempt to read the property, it always seems to return false, even when the Mouse Cursor is clearly located within the control. I wonder if I'm missing some basic techniques to maintain reliable use of the Property, or whethe the Property within Visual Studio 2003 is quirky!
 
Ok, I have just discovered that the difference between the two Properties are as follows:

Focused - Determines whether the Control has the input focus.
ContainsFocus - Determines whether either the Control, or any of its child Contols has the input focus.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top