title: Load Marker image in microsoft chart control from resources
body: <p>Platform : C#
  IDE: Microsoft Visual Studio 2010</p>
  
  <p>I am trying to load marker image at a point in chart control from Resources path, but its not able to load the file path. Any suggestions ?</p>
  
  <pre><code>foreach (var pt in chart1.Series["Series1"].Points)
  {
      foreach (DataRow dr in ds.Tables[0].Rows)
      {
          if (dr["OverNo"].Equals(pt.XValue) &amp;&amp; Convert.ToInt32(dr["Fow"]) &gt; 0)
          {
              //   pt.XValue +=5;
              if (Convert.ToInt32(dr["Fow"]) &gt; 0)
              {
                  //pt.MarkerImage = s + SC.whiteBall; // this works fine 
                  //pt.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
  
                  if (Convert.ToInt32(dr["Fow"]) == 1)
                  {
                      //   Bitmap b = new Bitmap(Properties.Resources.WhiteBall1);
                      pt.MarkerImage = s + SC.whiteBall;
                      pt.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle;
                  }
              }
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <p>Error : ImageLoader - Cannot load image from this location:
    System.Drawing.Bitmap in Program.cs</p>
  </blockquote>