Question

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

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top