1. Download our Official Android App: Forums for Android!

Support Code to close an window/Form on button click using Xamarin Studio

Discussion in 'Android Help' started by Ronald Nionzima, Feb 23, 2016.

  1. Ronald Nionzima

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Feb 23, 2016

    Feb 23, 2016
    1
    0
    5
    Male
    Kampala, Uganda
    Greetings, Am developing an android app using xamarin, I want to close the a window/form on clicking a button, my code does not achieve it, any help on how to achieve that is highly appreciated.
    Bellow is my code
    var btn3 = FindViewById (Resource.Id.quitapp);
    btn3.Click += delegate {
    Application.finish();

    };
     

    Advertisement

Share This Page

Loading...