private void button4_Click(object sender, EventArgs e)
        {
            connectionstr = "Data Source =" + serverNametextBoxWin.Text + ";" + "Initial Catalog=" + databaseNametextBoxWin.Text + "; Integrated Security=true;";
            try
            {
                dbConnect = new SqlConnection(connectionstr);
                dbConnect.Open();
            }

            catch (SystemException exception)
            {
                MessageBox.Show(exception.Message.ToString());
            }
            if (dbConnect.State == ConnectionState.Open)
            {
                toolStripStatusLabel1.Text = "Connection Succesfull!";
                TableStatistics tands = new TableStatistics(dbConnect, this);
                tands.Show();
                this.Hide();
            }
            else
            {
                toolStripStatusLabel1.Text = "Connection Does not Provide!";
            }
        }
 public TableColumn(String tableName, SqlConnection connection, TableStatistics ts)
 {
     InitializeComponent();
     tablestat = ts;
     dbConnect = connection;
     tName     = tableName;
 }
        private void button1_Click(object sender, EventArgs e)
        {
            String connectionstr = " Password="******";Persist Security Info=True;User ID=" + loginNameTextBox.Text + ";Initial Catalog=" + DatabaseNameTextBox.Text + ";Data Source=" + serverNameTextBox.Text;

            try
            {
                dbConnect = new SqlConnection(connectionstr);
                dbConnect.Open();
            }

            catch (SystemException exception)
            {
                MessageBox.Show(exception.Message.ToString());
            }
            if (dbConnect.State == ConnectionState.Open)
            {
                toolStripStatusLabel1.Text = "Connection Succesfull!";
                TableStatistics tands = new TableStatistics(dbConnect, this);
                tands.Show();
                this.Hide();
            }
            else
            {
                toolStripStatusLabel1.Text = "Connection Does not Provide!";
            }
        }