Click here to Skip to main content
15,076,130 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Howdy! I have a (hopefully) quick question: How do I get the command line arguments of a second Instance of an application from the first Instance WITHOUT using .NET Framework and ApplicationEvents? I HAVE tried googleing this, but I can't seem to get the correct search term to find what I need. I would REALLY appreciate any help. :)

I HAVE tried this[^], but it had a couple of problems that I could not figure out.

Thanks in advance!

@First Answer: I think that might be a little advanced for me. :( Is there a simpler way? I found this code, but I think it requires you to have Application Framework enabled. Which I can't have.
VB
Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs) Handles Me.StartupNextInstance
     My.Forms.MenuForm.MenuMotionOn(False, True)
     My.Forms.MenuForm.Top = 0
     My.Forms.MenuForm.Activate()
 End Sub

Is there something similar? I appreciate your willingness to help me :)
Posted
Updated 31-Jul-10 12:04pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900