>using System.Reflection; >... >PropertyInfo pi; >pi = button1.GetType().GetProperty("Text"); >MessageBox.Show(pi == null ? "Property does not exist." : "Property exists."); >pi = button1.GetType().GetProperty("Foo"); >MessageBox.Show(pi == null ? "Property does not exist." : "Property exists."); >