i am trying to put train stations on the combo box in order for when the system is run using c# i will be able to pick which train station i want..can anybody help?
siralv1
0
Newbie Poster
Recommended Answers
Jump to Postprivate void button1_Click(object sender, EventArgs e) { string[] arr = new string[10]; for (int i = 0; i < arr.Length; i++) { arr[i] = "String: " + i; comboBox1.Items.Add(arr[i]); } }
You should bring along some of your own code to show you have at least …
Jump to PostAre you going to type the names of the train station into code or are they retrieved from a database ?
Jump to PostWell you need to give some more info about how you want to calculate the price...the price is £3.00 for example..right, so what are you calculating from that??
As for the string to it's floating point equivalent...
public void convert() { string s = "1.60"; float val; …
All 9 Replies
james6754
39
Junior Poster
ChrisHunter
152
Posting Whiz in Training
Featured Poster
siralv1
0
Newbie Poster
james6754
39
Junior Poster
siralv1
0
Newbie Poster
castajiz_2
35
Posting Whiz
siralv1
0
Newbie Poster
tinstaafl
1,176
Posting Maven
james6754
39
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.