Hi alexandre,
thanks for immediate reply, im new in vb.net where do i put this code? is it inside the form load ? or i will create new module?
thanks and regards,
>Ryan what you will need to do then is create a main sub and make that the startup for the exe.
>bellow is a simple example of the main sub you can change it to your needs and enter some error checking.
>
>Module Startup
> Public Sub Main(ByVal cmdArgs As String())
> Dim form As myform
> If cmdArgs.Length > 0 Then
> form.textbox1.text = cmdArgs(0).Trim
> End If
> Application.Run(form)
> End Sub
>End Module
>
>
>>Dear Alexandre,
>>
>>
>> all i want is to run my application in vb.net and pass the parameter using vfp, i tried Sergey's command and it works load my apps and not to show the cmd window, but the parameter is not working
>>
>>my command in vfp is this
>>
RUN /n C:\xmlup\bin\hbisample.exe Param1 = 12345
>>
>>my command in vb.net form load is this
>>
>>
>>Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
>> Me.TextBox1.Text = param1
>>End Sub
>>
>>
>> I want to pass the value of param1 to the textbox of running form, any idea on how to do it?
>>
>>Thanks and Regards,
>>Ryan