title: How do you access data/functions from a different project/namespace/solution in Visual Studio?
body: <p>I'm fairly new to C# and asp.NET. I was wondering if it's possible (and if so, how) to access data/functions from a different project in Visual Studio using C#. I've got two separate projects in VS, one used as an Outlook Add-In, and the other is used as a windows form that displays data from a database and Outlook in a gridview. My goal is to have a button in the ribbon, when clicked, open a windows form outside of Outlook, or at least use the data in the windows form in a form in Outlook. How do I get the two to communicate like that? Thanks for the help.</p>
  
  <p>Windows form:</p>
  
  <pre><code>namespace DarwinTask
  {
      public partial class frmSearch : Form
      {
          public frmSearch()
          {
  </code></pre>
  
  <p>Outlook:</p>
  
  <pre><code>namespace DarwinOutlook
  {
      public class DarwinRibbon : Office.IRibbonExtensibility
      {
          public void SearchDarwin(Office.IRibbonControl control)
          {
              if (control.Id == "SearchDarwin")
              {
                  //Search function that opens frmSearch            
              }
          }
  </code></pre>