(VS2008) Have a label displayed on the startup form (lblTID). When a second instance of the app is called with a command line, I want to display the command line text string in lblTID.text on the startup form. I'm setting the lblTID object in StartupNextInstance, but the lblTID text object is not displaying the command line text string. As a matter of fact, I'm not able to change any text objects on the startup form from StartupNextInstance.
Here is my code:
Code:Partial Friend Class MyApplication Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs) _ Handles Me.StartupNextInstance strCommandLine = e.CommandLine.Item(0) frmStartup.lblTID.Text = strCommandLine e.BringToForeground = True End Sub End Class


Reply With Quote