Shouldn't it be:
int tabIndex = ((Label)sender).TabIndex;
?
Diego Frata
diego.fr...@gmail.com
On Wed, Feb 3, 2010 at 11:11 AM, Petit Eric surfz...@gmail.com 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 pjohns...@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@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
___
Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
___
Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list