[Mono-winforms-list] Finding the tabindex of a label

Petit Eric surfzoid at gmail.com
Wed Feb 3 08:11:27 EST 2010


i don't really know, but did yu try something like
Label Buff = sender as label
or
Label Buff = new label(
Buff = (Label)sender.TabIndex;

2010/2/3 PFJ <pjohnson1 at uclan.ac.uk>:
>
> Hi,
>
> I have a large number of labels in a window all of which point to the same
> event and all of which work (in other words, they call the event).
>
> Only problem is that I don't seem to be able to find the tabindex of the
> label clicked
>
> Normally I'd have something like
>
> public void dosomething(object sender, EventArgs e)
> {
>   int foo = (Label)sender.TabIndex;
>   ...
> }
>
> but casting sender isn't showing the TabIndex property.
>
> Is there a way to do this?
>
> Paul
> --
> View this message in context: http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27435810.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>



-- 
 Cordially.

Deploy your softwares for all platforms and finally update them in 3 clicks.
Try now the OpenSource MonoOSC tool
http://monoosc.sourceforge.net/
http://download.opensuse.org/repositories/home:/surfzoid/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu/
http://download.opensuse.org/repositories/home:/surfzoid:/DebianUbuntu:/Mono/

windows take you more($), Linux give you more!!
Political Power cannot be wisdom!

 Small Eric Quotations of the days:
 ---------------------------------------------------------------------------
 I have no special talents. I am only passionately curious


More information about the Mono-winforms-list mailing list