title: C# reference to a dll file i created doesn't work as it should
body: <p>i'm using microsoft visual C# 2010 express to write a form program to read and write to an access database.</p>
  
  <p>i created a class that is designed to read/write to the database file, saved it under a namespace and created a dll from it.</p>
  
  <p>it is set as ".net Framework 4" </p>
  
  <p>in my main program i added the reference to the dll file but when i try to add it to the code with</p>
  
  <pre><code>using Database;
  </code></pre>
  
  <p>it won't work even that the Database is in the reference of the namespace.</p>
  
  <p>am i doing something wrong? or is there another way to use the commands from Database in my main program other then copying it to it?</p>
  
  <p>// update //
  solved
  added public to all database public and DataBase db = new DataBase();</p>
  
  <p><strong>DATABASE.cs is use it for dll</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Data.OleDb;
  
  namespace Database
  {
      public class DataBase
      {
  
          public DataBase()
          {
          }
  
          public void ItemInsert(string name,string creator,string publishing,string itemType,string genere, string year)
  </code></pre>
  
  <p>the main program</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  using Database;
  
  
  namespace library
  {
      public partial class newItemForm : Form
      {
  
          private void btnConfirmNewItemClick(object sender, EventArgs e)
          {
              DataBase db = new DataBase(); //this solved it
              db.ItemInsert(txtItemNameType.Text, txtEditorType.Text, txtCreatorType.Text, comboBoxType.Text, txtGenereType.Text, txtYearType.Text);
          }
  
      }
  }
  </code></pre>