Re: GetColumn problem

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