How to display a message box in C# as system modal?

前端 未结 5 680
轻奢々
轻奢々 2021-01-20 16:32

How to display a message box in C# as system modal, something like vbModal in Visual Basic 6?

5条回答
  •  渐次进展
    2021-01-20 17:02

    Standard message box in C# is modal (cannot access rest of app until messagebox is dismissed).

    http://msdn.microsoft.com/en-us/library/aa335423(VS.71).aspx

    "A message box is a modal dialog, which means no input (keyboard or mouse click) can occur except to objects on the modal form. "

    Edit: I am not sure about Vb6 and messagebox there. Does it use a different type of "modal"?

提交回复
热议问题