Link to home
Start Free TrialLog in
Avatar of deanlee17
deanlee17

asked on

WPF Open and close a messagebox programatically in c#

Hi guys,

As the title suggests, what is the quickest way to open and close a messagebox in code (almost instantly)

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This might be a silly question but why do you want to close the messagebox you display almost as soon as it is shown?
Avatar of deanlee17
deanlee17

ASKER

Hi Andy,

Its not a silly question, im just testing out various ways the webbrowser behaves with various focuses around my application, I know that sounds a little odd.

Do you recommend the solution by: rikin_shah?