DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   

MessageBox.Show minimizes parent/child window

By Ashok Nalam on 09 May 2014 | Category: WPF | Tagged: .NET messagebox 
  Discuss Add Comment   |  
Add rating Rate this resource   
Today when I try to invoke MessageBox.Show from child window using below code, its minimizing the child window and popping up messagebox message.
MessageBox.Show("sample message", "Information");
In order to resolve this, pass owner to MessageBox.Show method.
MessageBox.Show(ParentForm/ChildForm, "sample message", "Information");
Hope it resolves your issue!
  Discuss Add Comment    
Add rating Rate this resource   
About the Contributor
Member Since : 10 Dec 2012
Member Points (Level) : 9526  (Professional)
Location : INDIA
Home Page : http://dotnetmirror.com
About : I am admin of this site.
Rate this resource
 
Add your Comment
Name Email WebSite
Captcha Refresh


Comments (2)
 
1. By ZAP on 23 Oct 2023

 
2. By ZAP on 23 Oct 2023

 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys