Where to insert namespace in C#


Experts C#

Help me how to add a namespace to my existing project in C#. I want to add this new namespace :

namespace autocomplete_controls_csharp

Where do I insert the above name space ,the idea here is that I want to auto complete the combo box on my form instead of using a button to fill it in, those who have experience with MS access will agree with me that once a combo box is set the data is also auto filled in. Below is my simple project:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace Accounting
    public partial class Form1 : Form
        public Form1()

        private void button1_Click(object sender, EventArgs e)
            SqlConnection con = new SqlConnection(@"Data Source=USER\SQLEXPRESS; Initial Catalog=CaPremier; Integrated Security=true; User ID=user\admini");
            SqlCommand cmdinsert = new SqlCommand("Insert into Customers values('" + txtCustomerID.Text + "', '" + txtCustomer.Text + " ','" + txtAddress.Text + "' )", con);
            cmdinsert.CommandType = CommandType.Text;
            MessageBox.Show("Data Inserted");
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScDirectorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
Just add the following
using autocomplete_controls_csharp;
somewhere at the top of your file.

using System.Data.SqlClient;
using autocomplete_controls_csharp;
namespace Accounting

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.