By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,680 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,680 IT Pros & Developers. It's quick & easy.

passing parameter....

P: n/a
How to pass parameter to a Vb.Net application?
..Net Framework 1.1.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
"Joe Smith" <Jo*********> schrieb:
How to pass parameter to a Vb.Net application?

Add this code to a module file and select 'Sub Main' as startup object in
the project properties:

Public Module Program
Public Function Main(ByVal Args() As String) As Integer
For Each Arg As String In Args
Next Arg
End Function
End Module

Starting an application and passing parameter to the started application:

Imports System.Diagnostics
Process.Start( _
"mysearch.exe", _
"""searchthis string"" ""inthisfile.txt""" _

M S Herfried K. Wagner
M V P <URL:>
V B <URL:>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.