I am making a project using windows form application. i made two other window forms (vehicle.cs and Input.cs). i want to obtain the value from the textbox in input.cs and use it in vehiicles.cs. is There any way to do this. I am trying to make a for loop but need the input value to complete the procedure.
Recommended Answers
Jump to PostAs soon as you have a class directly accessing a specific form you are asking for problems... It is probably safer to use a function that takes a reference to a form instead.
public class Vehicle { protected float m_mpg; protected float m_tankCapacity; protected float m_odometer; protected …
Jump to PostSkatamatic, your post was confusing and when i tried fitting it in my program wouldn't do what it's supposed to. A little more specification
This post is much less specific than my post was. What was confusing about it? Post the parts of your code that don't work and I …
All 8 Replies
Mitja Bonca 557 Nearly a Posting Maven
vishal1949 -1 Light Poster
lolafuertes 145 Master Poster
vishal1949 -1 Light Poster
skatamatic 371 Practically a Posting Shark
vishal1949 -1 Light Poster
skatamatic 371 Practically a Posting Shark
vishal1949 -1 Light 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.