c# - How to display MessageBox in Monodroid -


how can display message box in xamarin.android? how can yes or no response message box?

--- updated :

mybtn.click += (sender, e) =>  {    new alertdialog.builder(this)    .setmessage("hi")    .show(); }; 

you can use alertdialog.buider class within activity.

new alertdialog.builder(this)     .setpositivebutton("yes", (sender, args) =>     {         // user pressed yes     })     .setnegativebutton("no", (sender, args) =>     {         // user pressed no      })     .setmessage("an error happened!")     .settitle("error")     .show(); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -