How to populate a text box with values from a derived class? C#
<p>In my form I have the following...</p>

<pre><code>if (productNo == this.product1.ProductNumber)  //ProductNumber comes from Product class
                {
                    //if so, set the other values of the text boxes to that of the 
                    //product in memory
                    tbDescription.Text = product1.ProductDescription; //Works - from Product class
                    tbOnHand.Text = product1.NumberOnHand.ToString(); //Works - from Product class
                    tbUnitOfMeasure.Text = product1.UnitOfMeasure;    //Works - from Product class

                    tbVendorID.Text = product1.VendorID; // Doesn't work - from derived ManufacturedProduct class 
                }
</code></pre>

<p>Where VendorID comes from ManufacturedProduct class which is a derived class that comes from Product.  The last line of code is what doesn't work.  I want to be able to populate tbVendorID with the value in product1.VendorID (which by the way is an int)</p>

<p>I get the following error...Objects.Product' does not contain a definition for 'VendorID' and no extension method 'VendorID' accepting a first argument of type 'Objects.Product' could be found (are you missing a using directive or an assembly reference?)</p>
