Hey, Using an event handler for the button? - button_ok_Click Have a look at the following example, Click is a property of Button as is LongClick, so you can handle each event independently.
E.G; [Activity(Label = "My Activity", MainLauncher = true)] public class Activity1 : Activity { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.layout.main); Button button = FindViewById<Button>(Resource.id.button); TextView view = FindViewById<TextView>(Resource.id.text); button.Click += (s, args) => view.Text = "Clicked!"; button.LongClick += (s, args) => { view.Text = "Long click!"; args.ReturnValue = false; }; } } Cheers! Glen On Thu, May 26, 2011 at 6:32 PM, Willem Meints <will...@infosupport.com>wrote: > Do you have a little more information, like a stacktrace and the piece of > code where you bind the event handler. Ooh and I would love to have the > eventhandler itself also :) > > -----Original Message----- > From: monodroid-boun...@lists.ximian.com [mailto: > monodroid-boun...@lists.ximian.com] On Behalf Of satish860 > Sent: woensdag 25 mei 2011 17:48 > To: monodroid@lists.ximian.com > Subject: [mono-android] Unhandled exception in button_ok_Click > > i am getting this error "Unhandled exception in button_ok_Click" whenever > i try to deploy my app.. what can i do about it > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Unhandled-exception-in-button-ok-Click-tp4425716p4425716.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > -- Glen Hassell Inner Technique http://innertech.com.au/ Office: 03 9687 0006 Mobile: +61 (0) 438 340 385
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid