So I'm a little new to MVC. I'm trying to use it in writing VB.NET Windows Form code.
So I'm thinking, instead of using a VB.NET module, or having code embedded in the forms, I should create my own "Control" Class, to handle all operations and "application" level variables.
Is this the right approach?
Ex:
Code:Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load goControl = New MyControlClass() goControl.sUserID = txtUser.text goControl.sPass = txtPass.text goControl.login() Dim lfTemp as New frmMainForm lfTemp.show() me.Close() End Sub




Reply With Quote