I'm a complete newb. I see that these using statements or references at the top of the page are a pain to manage. Is there a way to reference these in a class or some other file and have a single statement at the top of the form code or in a logic file?
Ex: Make this
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.IO.Packaging;
using System.Linq;
using System.Reflection;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Schema;
using System.Xml.XPath;
using System.Xml.Xsl;
using System.Windows.Forms;
into this
using Class : FileName
Or some other form of reference.
Not having fully mapped the program I frequently move things to the logic files. Occasionally I get an error such as Are you missing a using directive or namespace
. Usually I see I'm missing something that was where I created the function but is missing where the function now resides. I keep a master and just copy it around to all the files when this occurs. Usually clears the error.
Seems like there must be a better way.
Thank you in advance. I appreciate any input and help I can get. Have a Great Day!!