How to call window.alert(“message”); from C#?

后端 未结 10 2522
春和景丽
春和景丽 2021-02-07 05:18

I have my own exception based on some condition and want to raise an alert when control comes in this catch block

catch (ApplicationException ex)
{
    //want t         


        
10条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-07 06:07

    Do you mean, a message box?

    MessageBox.Show("Error Message", "Error Title", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    

    More information here: http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox(v=VS.100).aspx

提交回复
热议问题