[Mono-winforms-list] GetColumn problem
Jonathan Pobst
monkey at jpobst.com
Wed Sep 16 17:35:17 EDT 2009
Paul wrote:
> 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 ;-)
Maybe we need to step back a little bit, what are you trying to do?
We think you have a grid (TableLayoutPanel) with some controls in it
(Labels?), and you want to know the column of the grid that a specific
Label is in.
so if:
- lesson is your TableLayoutPanel
- mylabel is the Label you want to find the column of
you would do:
int col = lesson.GetPositionFromControl (mylabel).Column;
If this isn't what you are going for, then please explain that and we'll
help you out. ;)
Jonathan
More information about the Mono-winforms-list
mailing list