VB.Net application listen to command line variable
Posted on 2013-12-16
I have a need to pass a variable from a commandline parameter to a vb.net form in VB. I have no clue on how to set the vb.net form so that it is actively listening so that when the variable is pass, it would capture what value is pass to the form.
Anyone have any examples or can point me to a website? Tried googling, but can't seem to find anything.
An example, would be creating a bat file that pass any value (a parameter) and the form can pop up with a messagebox, indicating what was pass to the form. The vb.net form will need to be actively open and listening. When the bat file is run, it will ask for a value, user enter the value and then that value is pass to the form. Form will pop up with a messagebox indicating what value is pass.