Hello all,
I am using the MSComm control on a MDI form. This control captures the weight from a large truck scale. The weight is transmitted about once every second. When the weight is above 500 lbs I have a form that pops up and asks the user for the LOAD TYPE (Inbound or Outbound). One of two other forms are shown based on the answer. In these last two forms - which ever one is selected - I put the weight in a text box and allow the user to save it (and other info) to a database.
I need the MDI to be able to evaluate what is going on in the other 3 forms so as to not continually try show the LOAD TYPE form until the weight is captured and the truck has left the scale.
What is the best way to evaluate whether a form is open and in use from another form?
I am using the MSComm control on a MDI form. This control captures the weight from a large truck scale. The weight is transmitted about once every second. When the weight is above 500 lbs I have a form that pops up and asks the user for the LOAD TYPE (Inbound or Outbound). One of two other forms are shown based on the answer. In these last two forms - which ever one is selected - I put the weight in a text box and allow the user to save it (and other info) to a database.
I need the MDI to be able to evaluate what is going on in the other 3 forms so as to not continually try show the LOAD TYPE form until the weight is captured and the truck has left the scale.
What is the best way to evaluate whether a form is open and in use from another form?