[Mono-winforms-list] GetColumn problem

Paul paul at all-the-johnsons.co.uk
Wed Sep 16 17:23:57 EDT 2009


Hi,

> > int col = lesson.GetPositionFromControl((TableLayoutPanel)sender).Column;
> > int row = lesson.GetPositionFromControl((TableLayoutPanel)sender).Row;
> >
> > is also giving -1 for both (as does
> > GetRow/GetColumn((TLP)sender).Row/Column)
> >
> > ??? 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.

Sorry for this being a dumb question, but can you explain this? I'm
doing things I've never done before, so you need to be gentle with
me ;-)

TTFN

Paul

-- 
Sie können mich aufreizen und wirklich heiß machen!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090916/0e3575f9/attachment-0001.bin 


More information about the Mono-winforms-list mailing list