473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Set Startup Parameters for a C# App

E G
Hi,

I'm developing a C# app that monitors the data feed for a single stock.
I want to start multiple instances of app dynamically passing the stock
symbols to instances as they start up. Any ideas on how I can do this?

Thanks in advance,

EG
*** Sent via Developersdex http://www.developersdex.com ***
Apr 26 '07 #1
2 3147
E G wrote:
Hi,

I'm developing a C# app that monitors the data feed for a single stock.
I want to start multiple instances of app dynamically passing the stock
symbols to instances as they start up. Any ideas on how I can do this?
Command line parameters?

>
Thanks in advance,

EG
*** Sent via Developersdex http://www.developersdex.com ***
Apr 26 '07 #2
"E G" <eg****@irvineco.comschrieb im Newsbeitrag
news:%2***************@TK2MSFTNGP03.phx.gbl...
I'm developing a C# app that monitors the data feed for a single stock.
I want to start multiple instances of app dynamically passing the stock
symbols to instances as they start up. Any ideas on how I can do this?
To use command line parameters declare the Main method of your application
with a parameter of type string[].

static void Main(string[] params)
{
.....
}

This parameter will contain the command line parameters.
To set them, when starting from the IDE, you can set them in the property
page of the project under Debugging.

Christof
Apr 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: angel | last post by:
Hi I use python on win2000.I found python perhaps spend 10~15 second on starting. How to accelerate it? Thanx
8
by: Niy | last post by:
or in registry? where?
3
by: Mr. B | last post by:
GRRRR... I've run across a situation in which I have NO solution. Hopefully there is one. VB.net. It's rather simple. I've a ComboBox that get's populated via a Database. And I pre-select...
3
by: Nobody | last post by:
Hi -- I'm developing an ASP.NET application in VS.NET and I want the startup page to read in some parameters from a querystring. But I can't figure out where to set the querystring. I thought it...
4
by: Johnnie Miami | last post by:
I'm using VB.Net 2005 beta 2 and have my login form (login.vb) specified as the startup form. If the user is successful logging in, I call my main form (main.vb). This all works fine but the...
1
by: John Veldthuis | last post by:
I want to pass some startup commands to my application using a shortcut. I have worked out how to do this no problems at all. I have a module and in it a SUB Main. In Main I do the parsing of the...
3
by: Biren Prajapati | last post by:
Hi All, Can anyone give me the way through which we can give querystrings in the startup page in visual studio 2003? E.g. Suppose if my startup page is login.aspx, and everytime if I want to...
10
by: Bernie Hunt | last post by:
This is probably a silly question, but I've gotten myself confused. My app has two forms, form1 and form2. form1 is the start up object in the propers. An event in form1 instantiates form2. ...
0
by: ycinar | last post by:
hey all, i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict.. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.