|
Dear Friends, I would like to know how to use MessageBox in Mono for Android in Visual Studio 2010 as code below:
public void DeletarRegistro (int iId)
{
try
{
if (MessageBox.Show("Confirma exclusão? ", "Excluir", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
sSQLQuery = "DELETE FROM MyTable " + "WHERE _id='" + iId + "';";
sqldTemp.ExecSQL(sSQLQuery);
sMensagem = "Record is deleted: " + iId;
MessageBox.Show("Dados Excluídos com sucesso.");
}
}
catch (SQLiteException ex)
{
sMensagem = ex.Message;
}
}
I am awaiting help.
|
|
|
|
|
I don't think you will be able to use MessageBox on Mono Android. MessageBox class is part of System.Windows.Forms package and is not available on Mono for Android. Instead please have a look at AlertDialog Sample[^].
Regards
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|