Home > IB Computer Science 2013 > Passing data from a subform back to a main form

Passing data from a subform back to a main form

When you develop more complex GUI applications, you will begin to code subforms and you will run up against the problem of how to get the information that the user typed into the subform back into the main form. It is generally advisable to keep the communication with the back-end application logic restricted to the main form, and hence you end up with something like the diagram below.

I have put together a short document that shows how to get information from a subform to the mainform. The most important thing is that the subform exposes a method that the main form can call. This method returns the data that has been entered into the subform. Please read the document.

How to pass information from a subform to the main form

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s