Is there a way to apply the reference " using mysql.data " to all windows forms in a project by not going to each form and typing it manually? Like an option from the solution explorer.
Asked
Active
Viewed 43 times
0
-
1You could ask someone else to do it. – Forklift Apr 19 '17 at 19:56
-
Never tried, but you could try using a partial class to do it. – Joel Priddy Apr 19 '17 at 19:57
-
This is called importing a namespace. – djv Apr 19 '17 at 20:18
1 Answers
0
Here's one approach:
- Edit -> Find And Replace -> Find in Files
- in Find what box write:
using System;
- in Replace with box write:
using System;\r\nusing mysql.data;
- in Find options group check
use regular expressions
and in Look at these file types add*.cs

Nino
- 6,931
- 2
- 27
- 42