VISUAL BASIC 2010 Create an application that calculates the registration fees fo
ID: 3648457 • Letter: V
Question
VISUAL BASIC 2010
Create an application that calculates the registration fees for a conference. The general conferenceregistration fee is $895 per person. There is also an optional opening night dinner with a keynote address for $30 per person. Additionally, the optional preconference workshops listed are available:
Optional Preconference workshops
Workshop
Introduction to E-commerce $295
The Future of the Web$295
Advance Visual Basic$395
Network Security $395
This application should have two forms.
The Conference Options form allows the user to select the regular conference registration, the optional opening night dinner, and an optional preconference workshop. (The user cannot register for the optional events, however, without selecting the conference registration of $895.). When the Close button is clicked, this form should be remove from the screen and the total registration fee should appear on the main form.
Explanation / Answer
print? 01PublicClassfrmMain 02 03 PrivateSubbtnSelectConference_Click(ByValsender AsSystem.Object, ByVale As System.EventArgs) HandlesbtnSelectConference.Click 04 05 DimanotherForm AsNewfrmOptions ' Form instance 06 07 ' Show the other form in modal style. 08 anotherForm.ShowDialog() 09 ' Display some some numbers in the list box on the mail form. 10 ' Because the other form is displayed in modal style, this 11 ' Code will not execute until the user closes the other form 12 13 14 15 16 EndSub 17 18 PrivateSubbtnReset_Click(ByValsender AsSystem.Object, ByVale As System.EventArgs) HandlesbtnReset.Click 19 20 'Reset the Form 21 lblTotal.Text = String.Empty 22 txtName.Clear() 23 txtCompany.Clear() 24 txtAddress.Clear() 25 txtCity.Clear() 26 txtPhone.Clear() 27 txtEmail.Clear() 28 txtState.Clear() 29 txtZip.Clear() 30 31 EndSub 32 33 PrivateSubbtnExit_Click(ByValsender AsSystem.Object, ByVale As System.EventArgs) HandlesbtnExit.Click 34 ' End the application
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.