private void buttonNavigateTo_Click(object sender, EventArgs e)
        {
            //CLOSE ALL FORMS EXCEPT MAIN FORM
            ViewHistory f1 = (ViewHistory)Application.OpenForms["ViewHistory"];

            f1.Close();
            Settings f2 = (Settings)Application.OpenForms["Settings"];

            f2.Close();

            //SET SELECTED URL TO THE TEXT BOX
            int    selectedIndex = dataGridView1.SelectedRows[0].Index;
            string selectedURL   = dataGridView1[1, selectedIndex].Value.ToString();

            Form1.historyURL = selectedURL;

            //FLAG IS ONE SO FETCH KNOWS TEXT BOX URL IS COMING FROM FAVORITES.
            Form1.flag = 2;
        }
 //OPEN THE FORM TO VIEW THE HISTORY
 private void buttonViewHistory_Click(object sender, EventArgs e)
 {
     ViewHistory obj = new ViewHistory();
     obj.ShowDialog();
 }