ActiveControl problem

  • Thread starter Thread starter unknown;
  • Start date Start date
U

unknown;

hello,

i've got a question about active control.
i'm buillding an application witch uses me.activeControl a few times
to check some things.

Now something strange happends..

when i click on a combobox ((Infragistics datagrid.comobobox) named
''comboGender" and i check the properties in the watch window:
me.ActiveContol.Name = "comboGender"

In an other form witch i build from scratch i do the same thing: i
click on combo "comboGender2" and when i check the properties the
following values are displayed in my watch window:
me.activeControl.Name = ""
me.activeConrol = {Text = ""}
me.activeControl.Parent.Name = "comboGender2"
me.activeControl.Parent = {Infragistics.Win.UltraWinGrid.UltraCombo}

My Question:
Why is in all the other forms the me.ActiveControl set to comboGender
and in the form i created me.ActiveControl is set to
comboGender.Text????

I don;t get it.


thanks in advance
 
quote from infragistics

When the UltraCombo (or some other editor controls) goes into edit
mode,
it will display a derived TextBox control over itself to allow the
user to
edit. So what you will probably want to do is check to see if the
ActiveControl is an EmbeddableTextBox. If so, use the Parent property
and
that will give you the control you want.
 
Back
Top