[Mono-winforms-list] GetColumn problem
PFJ
pjohnson1 at uclan.ac.uk
Wed Sep 16 09:47:50 EDT 2009
Hi,
I have a tablelayoutpanel called lesson. This contains a number of rows and
columns. I have a generic mouseclick event attached to it.
In the event I want to find the x and y position of the mouse as well as the
column.
No problems with the x and y position (MousePosition.x and MousePosition.y
do the job splendidly), however, I can't seem to get the column number.
Currently, my code looks like this
int colno = lesson.GetColumn((Control)sender));
(it has had a pile of different things in the place of Control above).
When I output colno to a label (for debugging), it always gives -1
irrespective of the column clicked. I'm probably really close, but just
can't quite get it right.
A little help?
TTFN
Paul
--
View this message in context: http://www.nabble.com/GetColumn-problem-tp25472747p25472747.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
More information about the Mono-winforms-list
mailing list