VB.Net Syntax
Passing In Arguments - Constructor
Protected _passedIn As String
Public Sub New(ByVal sValue As String)
InitializeComponent()
Me._passedIn = sValue
End Sub
Form Displaying a Form
Private btnDisplayForm_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnDisplayForm.Click
Dim oAnotherForm As frmMyOtherForm
oAnotherForm = New frmMyOtherForm
oAnotherForm.Show(System.Windows.Forms.Controls.FromHandle(Me.Handle))
End Sub
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext