The variable should be declared here:
VB Code:
  1. For Each oControl As Control In Me.Controls