1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

    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();

    };
     


Loading...
Similar Threads - Code close window
  1. Jenny Lee
    Replies:
    1
    Views:
    347
  2. kenhitokiri
    Replies:
    10
    Views:
    654
  3. Rob Sleurs
    Replies:
    0
    Views:
    315
  4. gimommy
    Replies:
    0
    Views:
    206
  5. MD RAKIBUL ISLAM
    Replies:
    0
    Views:
    227
  6. Gleis
    Replies:
    1
    Views:
    523
  7. XSnaker
    Replies:
    1
    Views:
    461
  8. NewDroidGA
    Replies:
    0
    Views:
    820
  9. lovingdog
    Replies:
    1
    Views:
    1,026

Share This Page

Loading...