Re: GetColumn problem

PFJ <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
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.

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.