private void btnProceed_Click(object sender, EventArgs e)
        {
            //this checks to see if the user has selected an item from the listbox, as the default value is -1
            if (LstBxSavedSearch.SelectedIndex > -1)
            {
                string ListResult = LstBxSavedSearch.SelectedItem.ToString();

                Int32 AgeFrom = Convert.ToInt32(ListResult.Substring(7, 2));

                Int32 AgeTo = Convert.ToInt32(ListResult.Substring(10, 2));

                string Location = ListResult.Substring(22);

                clsCustomerSavedSearch NewSearch = new clsCustomerSavedSearch();
                string EmailAddress = NewSearch.SavedSearch(AgeFrom, AgeTo, Location);

                //this runs if the email address is initalised but never appended.
                if (EmailAddress == "")
                {
                    MessageBox.Show("No results found!");
                }
                else
                {
                    //this sends us to the showemail function with the IsGroup Bool value being set to true
                    IsGroup = true;
                    FrmComposeEmail newEmail = new FrmComposeEmail();
                    newEmail.GroupEmail(EmailAddress);

                    newEmail.Show();

                    //this closes the current form
                    this.Close();
                }



            }
            else
            {
                //this gives us an error message as nothing as been selected
                lblError.Text = "Please Select an item from the listbox";
            }
        }