Let's say I have declared a oledDbAdapter1 in Form1, and another in Form2 with exactly the same name. Will this cause any conflict?
Asked
Active
Viewed 25 times
1
-
3Have you tried it? Was it ok? – Tim Schmelter Mar 11 '14 at 10:15
-
Yes. No problem so far. But I want to be sure. – Nerdsworth Mar 11 '14 at 10:16
1 Answers
1
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

Matt Wilko
- 26,994
- 10
- 93
- 143