ubound of webcontrol array in a webcontainer help

i need to do a count of specific types of controls in a webcontainer. example i have a textfield, label and array of buttons in a container. the buttons are dynamic basically updating text and visibility. sometime i need add and remove buttons. i just need to be able to count the webcontrol array.

Use WebPage.ChildCount and .ChildAtIndex to iterate through the controls, checking if each control IsA WebButton (or whatever the name of your control class is). Call the .Close method to remove a control from the page.