Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
395 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
| Software ==> | Visual Basic (46 exercises) |
| Topic ==> | Working with files (3 exercises) |
| Level ==> | Relatively easy |
| Subject ==> | Visual Basic training |
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
Press CTRL + D to add the file called frmApplication.vb from the above folder into your project (or right click on the project and choose to add it as an existing item). You may need to overwrite an existing copy of this form in your project to do this.
Change your project's properties to make this the default form for your project. When you run your project, you should see this:

The code behind to validate the form entries should be included already. Note that the names of the controls are shown in the diagram above.
The code attached to the Apply button currently looks like this (after checking that all of the form's boxes have been filled in):
'if we get here, it's OK to do something with this data - so write out
'values entered to text file
'writeFormData()
Uncomment this call to the procedure called writeFormData, then write the procedure. Here's the sort of text file it should produce:

After 3 applicants have been submitted, here's what your text file might look like. Whoever thought that about Kermit?
That's it!
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2026. All Rights Reserved.