event problem(text box)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • juli jul

    #1

    event problem(text box)

    Hello,
    I have a class which is a defenition of a editable list view ,the cells
    in this list are text boxes:
    public SMK_EditListVie w()
    {
    this.columnHead er1 = new System.Windows. Forms.ColumnHea der();
    this.columnHead er2 = new System.Windows. Forms.ColumnHea der();


    this.Columns.Ad dRange(new System.Windows. Forms.ColumnHea der[] {
    this.columnHead er1,
    this.columnHead er2 });
    this.Controls.A ddRange(new System.Windows. Forms.Control[]
    {this.editBox}) ;

    }

    My problem is how to detect (while I am catching an event) which one of
    the columns(text box) being accessed?
    Thank you very much!






    *** Sent via Developersdex http://www.developersdex.com ***
  • Angel J. Hernández M.

    #2
    Re: event problem(text box)

    You can do it by accesing its name ;-)

    Regards,

    --
    Angel J. Hernández M.
    MCP - MCAD - MCSD - MCDBA




    "juli jul" <juli8024@yahoo .com> escribió en el mensaje
    news:%239AkwCyU FHA.1508@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hello,
    > I have a class which is a defenition of a editable list view ,the cells
    > in this list are text boxes:
    > public SMK_EditListVie w()
    > {
    > this.columnHead er1 = new System.Windows. Forms.ColumnHea der();
    > this.columnHead er2 = new System.Windows. Forms.ColumnHea der();
    >
    >
    > this.Columns.Ad dRange(new System.Windows. Forms.ColumnHea der[] {
    > this.columnHead er1,
    > this.columnHead er2 });
    > this.Controls.A ddRange(new System.Windows. Forms.Control[]
    > {this.editBox}) ;
    >
    > }
    >
    > My problem is how to detect (while I am catching an event) which one of
    > the columns(text box) being accessed?
    > Thank you very much!
    >
    >
    >
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***[/color]


    Comment

    • juli jul

      #3
      Re: event problem(text box)

      The problem is that in this class there is a usage of one text box
      control (although they use it twice in each column),how can I know which
      one of the columns(text boxes) in the list generated by this class- been
      chosen?
      Thank you!



      *** Sent via Developersdex http://www.developersdex.com ***

      Comment

      Working...