On Aug 26, 2011, at 7:10 PM, shaked949 wrote: > I know how to create button .. > but I don't know How to set an actions after the button is selected... > if you have some links with methods.. (like when I press the button , new > "page" is opened..or when i press the button ...the user can fill in details > about him.. )
A view/the screen contents are controlled by an Activity. Thus, each screen you have should correspond to an activity. The easiest way to open a new screen (Activity) is to use Context.StartActivity(). Thus, paraphrasing: [Activity(MainLauncher=true, Label="My App")] public class MainActivity : Activity { public override void OnCreate (Bundle b) { base.OnCreate (b); // ... Button next = FindViewById<Button>(Resource.Id.next); next.Click += (sender, e) { StartActivity (typeof (NextActivity)); }; } } [Activity] public class NextActivity : Activity { // ... } - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid