title: How to display data from a database in a windows forms solution?
body: <p>I have a question. How do i display some information from a table in a database in a windows forms solution? Currently I have this code:</p>
  
  <pre><code> private void cafeBox_SelectedIndexChanged(object sender, EventArgs e)
      {
          var dbconn = new DbConnection(MysqlRes.host, MysqlRes.user, MysqlRes.password, MysqlRes.database);
          Query query = new Query(dbconn);
          List&lt;string&gt; cafestring = new List&lt;string&gt;();
          cafestring = query.RunManualQuery("SELECT locationmame FROM location");
          foreach (var cafe in cafestring)
          {
              cafestring.Add(cafe);
          }
  </code></pre>
  
  <p>It just  wont display in my forms solution, where i have a textbox i want this data to be displayed in.. Do any of you guys know how to do this? </p>