hainguyen81: why converting an application/service into a Spring application/service, for something that can be done with a single method call from the core api's?
to me, this question looks like a homework task, or something in the early stage of learning Java.
working with Spring for this sounds like dropping a 45 megaton nuclear warhead on your house because a mosquito is keeping you awake.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...