在Form上Initialize介面的Object Property


不一定在Form Class上的Constructor內Assign 介面Object的Property
Private Sub MainApp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

可以加在Form_Designer.vb上 Assign
功能上近似Flex Builder \ Flash Builder 的 (MXML) 使用方法.


(但需要小心設定 , 因為Visual Studio .net Remark上註明 , 不建議用code editor去更改此內容)
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.

曾加入非介面Object(MDIChild)的Code, 會產生不正常運作.


發表留言