public Form1() { InitializeComponent(); try { ProcessOrders p = new ProcessOrders(); p.EncryptConfigSection("appSettings"); p.EncryptConfigSection("connectionStrings"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }