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

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top