ActiveControl problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • unknown;

    #1

    ActiveControl problem

    hello,

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

    Now something strange happends..

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

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

    My Question:
    Why is in all the other forms the me.ActiveContro l set to comboGender
    and in the form i created me.ActiveContro l is set to
    comboGender.Tex t????

    I don;t get it.


    thanks in advance

  • unknown;

    #2
    Re: ActiveControl problem

    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 EmbeddableTextB ox. If so, use the Parent property
    and
    that will give you the control you want.




    On 23 jul, 11:02, "unknown;" <unknown1...@gm ail.comwrote:
    hello,
    >
    i've got a question about active control.
    i'm buillding an application witch uses me.activeContro l a few times
    to check some things.
    >
    Now something strange happends..
    >
    when i click on a combobox ((Infragistics datagrid.comobo box) named
    ''comboGender" and i check the properties in the watch window:
    me.ActiveContol .Name = "comboGende r"
    >
    In an other form witch i build from scratch i do the same thing: i
    click on combo "comboGende r2" and when i check the properties the
    following values are displayed in my watch window:
    me.activeContro l.Name = ""
    me.activeConrol = {Text = ""}
    me.activeContro l.Parent.Name = "comboGende r2"
    me.activeContro l.Parent = {Infragistics.W in.UltraWinGrid .UltraCombo}
    >
    My Question:
    Why is in all the other forms the me.ActiveContro l set to comboGender
    and in the form i created me.ActiveContro l is set to
    comboGender.Tex t????
    >
    I don;t get it.
    >
    thanks in advance

    Comment

    Working...