Re: Finding the tabindex of a label

Diego Frata <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
Shouldn't it be:

int tabIndex = ((Label)sender).TabIndex;

?

Diego Frata
[email protected]


On Wed, Feb 3, 2010 at 11:11 AM, Petit Eric <[email protected]> wrote:

> 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 <[email protected]>:
> >
> > 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  -  [email protected]
> > 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
> _______________________________________________
> Mono-winforms-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>

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