private void btBusca_Click(object sender, EventArgs e) { btBusca.ImageIndex = 1; DALConexao cx = new DALConexao(DadosDaConexao.StringDeConexao); DLLSubCategoria dll = new DLLSubCategoria(cx); dgvDados.DataSource = dll.Localizar(txtNome.Text); label2.Visible = true; btBusca.ImageIndex = 0; }