Pergunta

Let's say I have declared a oledDbAdapter1 in Form1, and another in Form2 with exactly the same name. Will this cause any conflict?

Foi útil?

Solução

No the fully qualified object name must be unique. So in your case you have:

MyApplication.Form1.oledDbAdapter1 

and

MyApplication.Form2.oledDbAdapter1 

Where MyApplication is the name of the Application or Assembly

So this will not cause an issue. But you can't have two objects called oledDbAdapter1 in Form1

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top