F
fhunter
Hi,
I have a custom control which contains another custom
control.
I am writting something like this:
public LonLatDialog(int aWidth,int aHeight)
{
...
Controls.Add(mDropDownList);
mDropDownList.Hide();
Focus();
}
When I do this and I call Focus(). I would have expected
the control LonLatDialog to get focus and for
this.Focused to be true. But this is not the case
this.Focused never gets set to true and the focus remains
on mDropDownList.
What am I doing incorrectly ?
Thank you
I have a custom control which contains another custom
control.
I am writting something like this:
public LonLatDialog(int aWidth,int aHeight)
{
...
Controls.Add(mDropDownList);
mDropDownList.Hide();
Focus();
}
When I do this and I call Focus(). I would have expected
the control LonLatDialog to get focus and for
this.Focused to be true. But this is not the case
this.Focused never gets set to true and the focus remains
on mDropDownList.
What am I doing incorrectly ?
Thank you