Search code examples
vb.netmessagebox

create own message or dialog box in vb . net


I am trying to design my own message box or dialog box. While real message box displays, if we try to skip the messagebox by clicking the form, message box will blink thrice and shows us like we cant skip message box.

how to achieve this action in our own dialog or message box.shared screen shot as gif

Note: I am using visual studio 2017, windows application through vb .net. I have desgined my own message or dialog box as windows form. I have tried me.toplevel = true or me.bringfront= true


Solution

  • Use form.ShowDialog it prevents user interaction with the form in the back