If frmStartup.ShowDialog() = DialogResult.OK Then Me.MyVariable = frmStartup.FormVariable End Ifand then pass it to your frmMain like this:
Dim oMainForm As New frmMain(Me.MyVariable) oMainForm.Show()of course, frmMain would need to declare parameters in it's constructor, like this:
Public Class frmMain Inherits System.Windows.Form ' Form's constructor Public Sub New(MyParm As String) ' code here to handle parm InitializeComponent() End Sub 'New End Class 'frmMainAnyway, that should be enough to get you started ...