Recently, every page requires using to reference space, which is annoying.
I searched it and it could be changed.
The method is as follows:
1. Open the directory where Visual Studio 2008 is installed and find the ItemTemplates folder, for example:
C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ ItemTemplates
If you want to modify the default namespace of the Winfows Form class, open
C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ ItemTemplates \ CSharp \ Windows Forms \ 2052
2. Decompress Form.zip and modify the content of the form. cs file. For example, add a line
Using System. Data. SqlClient;
Then compress the file into a zip file, and then compress it under the form folder to overwrite the original form.zip file.
3. Finally, open the Visual Studio 2008 command prompt and execute
Devenv/InstallVsTemplates
Other projects are similar