title: The VS2010 SQL Connection Dialog
body: <p>I have successfully implemented the VS2010 SQL Connection dialog (downloaded from <a href="http://archive.msdn.microsoft.com/Connection" rel="nofollow noreferrer">here</a> into a few of my projects now and have been using it without complaint. I have been using it explicitly to connect to SQL Server, and recently I have wanted to test whether the user has checked the 'Save my password' check box, shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/vb4Ly.png" alt="VS2010 Connection Dialog"></p>
  
  <p>The <code>public partial class SqlConnectionUIControl : UserControl, IDataConnectionUIControl</code> has a private member class called <code>ControlProperties</code> which contains all of the accessors to the information I need - but I cannot get to it. </p>
  
  <p>The way this dialog is written is fairly complex and I do not want to go changing there source code if I can help it. Has anybody come across this before and if so, how do I read whether the user has selected the 'Save my password' (accessed in the <code>SqlConnectionUIControl</code> class via <code>public bool SavePassword</code>) option (or any other for that matter)?</p>