Hi I have a webbrowser on my form and having problem with getting its values. I followed the page Question about How to loop through all the properties of a class

VB.NET Code:
  1. Type type = Browser_Wb.GetType();
  2.  
  3. PropertyInfo[] properties = type.GetProperties();
  4.  
  5. foreach (PropertyInfo property in properties)
  6. {
  7.     Console.WriteLine("Name: " + property.Name + ", Value: " + property.GetValue(Browser_Wb));
  8. }

And

VB.NET Code:
  1. Type type = Browser_Wb.GetType();
  2.  
  3. BindingFlags flags = BindingFlags.Public | BindingFlags.Instance;
  4. PropertyInfo[] properties = type.GetProperties(flags);
  5.  
  6. foreach (PropertyInfo property in properties)
  7. {
  8.     Console.WriteLine("Name: " + property.Name + ", Value: " + property.GetValue(Browser_Wb, null));
  9. }

I got error: System.ArgumentException: 'Property Get method was not found.'