[Mono-winforms-list] GetColumn problem
contact at i-nz.net
Wed Sep 16 12:13:54 EDT 2009
On Wed, Sep 16, 2009 at 5:08 PM, PFJ <pjohnson1 at uclan.ac.uk> wrote:
> int col = lesson.GetPositionFromControl((TableLayoutPanel)sender).Column;
> int row = lesson.GetPositionFromControl((TableLayoutPanel)sender).Row;
> is also giving -1 for both (as does
> ??? What is going on?
You are asking the tablelayoutpanel for the column and row (the cell)
fo the tablelayoutpanel :). You need to supply an argument that is a
child control of the tablelayoutpanel.
More information about the Mono-winforms-list