Wednesday, April 25, 2012

C# message box confirmation formate

When we need use Yes/No confirmation from a Meassage Box  we can use the formate.


 if (MessageBox.Show("Are you sure want to Remove the Record?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)  
           {  
            // Do something  
           }  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...