vb.net代码转化成c#
Private FormOldWidth As Long
Private FormOldHeight As Long
Public Sub ResizeInit(ByVal FormName As Form)
Dim Obj As Control
FormOldWidth = FormName.Width
FormOldHeight = FormName.Height
On Error Resume Next
For Each Obj In FormName.Controls
Obj.Tag = Obj.Left & " " & Obj.Top & " " & Obj.Width & " " & Obj.Height & " "
Next Obj
On Error GoTo 0
End Sub
哪位大哥能帮个忙,把上面的代码转化成c#,关键是循环不知道怎么写啊