[Mono-winforms-list] GetColumn problem

PFJ pjohnson1 at uclan.ac.uk
Wed Sep 16 12:08:29 EDT 2009


Hi,


Jonathan Pobst wrote:
> 
> PFJ wrote:
>> In that case, why is GetPositionFromControl returning -1 for column and
>> not
>> the actual column number? Is this a bug?
> 
> I guess it is either a bug in Mono or your code.  ;)
> 
> If the MouseClick event you are attached to is on the TLP, the sender 
> will most likey be the TLP and not the control if you are doing this:
> 
> int colno = lesson.GetColumn((Control)sender));
> 

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?

TTFN

Paul


			

-- 
View this message in context: http://www.nabble.com/GetColumn-problem-tp25472747p25475629.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list