Re: GetColumn problem

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

Jonathan
_______________________________________________
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.