Click here to Skip to main content
15,886,056 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI everyone i would really appreciate it if you could help me with this problem
so i have a huge problem . i need to use the data stored in a combo box from a form which it is stored in to be used in another form. 
basically im making a roadtrip app at a grade 10 level where on the first form you pick the starting , ending and destination point but when you type show route it opens up onto another form. i wanted to know how can i use the data from the previous comboboxes to make an if and else statement and output the route direction onto a memo.

What I have tried:

<pre>i have tried declaring the starting point and ending point on the OnCreate of the direction form but nothing has worked but there are no errors when i run it.
Posted
Updated 3-Nov-18 22:15pm

1 solution

The same way you pass any information between classes. Create a method in the second form (or an alternative constructor) that takes as its parameter(s) the information that the first form gets from the combobox. See Transferring information between two forms, Part 1: Parent to Child[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900