Jump to content

C#/SQL - Mudança de PC


thegodfather
 Share

Recommended Posts

Boas Pessoal!

O ano passado criei uma aplicação em C#, e que possui uma Base de Dados, criada em SQL.

Entretanto o PC avariou, e comprei um novo. Instalei o Visual Studio, e como tinha cópias do programa que fiz em pen's, passei-o para o novo PC.

Entretanto, quis correr o programa, e como é lógico dá erro...

"Error 2 '' does not contain a definition for 'bDPneusDataSet' and no extension method 'bDPneusDataSet' accepting a first argument of type 'PAP_Oficina.JanelaLogin' could be found (are you missing a using directive or an assembly reference?) C:\...\JanelaLogin.cs 107"

Imagino que seja a base de dados que não está no local correcto, ou outra coisa qualquer.

Alguém me poderá ajudar?

Obrigado,

thegodfather

Link to comment
Share on other sites

Posso amigo:

private void JanelaLogin_Load(object sender, EventArgs e)

{

// TODO: This line of code loads data into the 'bDPneusDataSet.tbUtilizador' table. You can move, or remove it, as needed.

this.tbUtilizadorTableAdapter.Fill(this.bDPneusDataSet.tbUtilizador);

// TODO: This line of code loads data into the 'servicoDataSet.tbUtilizador' table. You can move, or remove it, as needed.

this.tbUtilizadorTableAdapter.Fill(this.bDPneusDataSet.tbUtilizador);

// TODO: This line of code loads data into the 'servicoDataSet.tbUtilizador' table. You can move, or remove it, as needed.

this.tbUtilizadorTableAdapter.Fill(this.bDPneusDataSet.tbUtilizador);

//Limpar a ComboBox

utilizadorComboBox.SelectedIndex = -1;

}

O programa detecta 6 erros (no antigo PC não dava nenhum):

Linha 107, 109, 111, no local onde assinalei a "vermelho".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.