0

In C# application, I want know how work MessageBox. But I block on this method:

MS.Win32.UnsafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)

My question is the same in suject title:

Where can I find some information on this method?

Anatoliy Nikolaev
  • 22,370
  • 15
  • 69
  • 68
vernou
  • 6,818
  • 5
  • 30
  • 58
  • [You're not interested in some or even all information](http://blogs.msdn.com/b/oldnewthing/archive/2012/02/02/10263027.aspx). Please explain what you are trying to do and what problem your current approach introduces and how you would like to solve that. – CodeCaster Mar 29 '14 at 12:39
  • possible duplicate of [Is there a non-blocking version of MessageBox.Show (or something like it)?](http://stackoverflow.com/questions/2834101/is-there-a-non-blocking-version-of-messagebox-show-or-something-like-it) – CodeCaster Mar 29 '14 at 12:40

1 Answers1

1

MS.Win32.UnsafeNativeMethods.MessageBox is just a reference to the native API function MessageBox.

It blocks because that is what it does: it is waiting for you to press a button.

arx
  • 16,686
  • 2
  • 44
  • 61
  • It is not application block, but my undertanding. I search some think like MSDN who explain what this method make. This link like well. Thank. – vernou Mar 29 '14 at 14:20