By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,175 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,175 IT Pros & Developers. It's quick & easy.

ActiveControl problem

P: n/a
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

Jul 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.


On 23 jul, 11:02, "unknown;" <unknown1...@gmail.comwrote:
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

Jul 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.