Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

whove nove tifes ton the list, dear ard provt the list. The form as oorian a conbe ber iricilices with De following entries. A. Dependeufr.

image text in transcribed
image text in transcribed
whove nove tifes ton the list, dear ard provt the list. The form as oorian a conbe ber iricilices with De following entries. A. Dependeufr. Pay, An Anercas butins on tha form An add budon that will add an enh be the lest iship an inout bee. The veer may not aod a duglicate lite ib the int A remove buhan that wal whow the sabched ten of the lat, An enor it deployet f the use the is add a blark tile or renove a stbe without frat selecting ane. A drew at butson all renow at the enories toes the lut A court bution at deglay in a meseage bes the nurver a prit preview whidow. holude your nare on fee regort fod traty, an eat buan. The merv at heve the following optont a) Devign an about farm to the prowed. (P) raka) Fabuses coururen hiocelackno Piaj4ats MANDAGr 20z2 coverstial b) Cole be cal Abolever wt conmert on It c) Codt the cut buasin wth sormert on it (t) maki? e) Aralyre and prowbe enplenation en the coding beioer Cies minisiteger As hasyer Con lstCongaveltirg An forre. Mag a new movie sile to he ist If novesContedex. fext o = Then Wre movescontudon For indeaterteger o 6 To Aent Court +1 Mestageb. find in eave. mivieu Pombollox FaverO 3. The GU below will maintain a list of movie tides in an array. The user can add and remove movie titles trom the list, clear and print the list. The form will contain a combo box initialized with the following entries: A Dependents Pay, An American Resident, Dancing With Fools, Home By Yourseif, and Ghost Man. There witl be six butions on the form. An add buition that will add an entry to the list using an input box. The user may not add a duplicate ble to the list. A remove button that will remove the selected item off the list. An error is displayed if the user tries to add a blark ttle or remove a tide without first selecting one. A dear all button wall remove all the entries from the list. A count button will display in a message box the number of movie tites can be displayed. The print button will display the 'Movie Libt report in a print preview window. Include your name on the report. And finally, an exit button. The menu will have the following options: a) Design an about form to the project. (3 marks) b) Code to call Aboutflok with comment on it c) Code the exit button with comment on it (2 markn) and the , close () and how it could morka together, it it in possible to do so. (3 marks) e) Analyze and provide explanation on the coding below: Privale Sub AddTootsuripMenultem_Click(ByVal sender As System.Oeject, ByVal e As System. EventArgs) Hancles AddTootS HipMenulten. Click. Dim indexinteger An Integer Dim liatComparestring As String "Add a new movie tile to the list if movienComboBlax. Text o - Then With moviesCombeflow For indexdinteger =0 To Mems.Count 1 IstComparesting = Hems(indexdrteger). Tostring if listComparestring. ToUpper = . Text. ToUpper Then Belectedindex = indexinteger Exit Sub End if Nest Sole End With Else MessagelBox. Show("Enter a movie thle to addr, "Missing data". Messageblexbuitions.OK, . Mensegeboxicon. Exctamation) End if moviesCombollox. Focuso whove nove tifes ton the list, dear ard provt the list. The form as oorian a conbe ber iricilices with De following entries. A. Dependeufr. Pay, An Anercas butins on tha form An add budon that will add an enh be the lest iship an inout bee. The veer may not aod a duglicate lite ib the int A remove buhan that wal whow the sabched ten of the lat, An enor it deployet f the use the is add a blark tile or renove a stbe without frat selecting ane. A drew at butson all renow at the enories toes the lut A court bution at deglay in a meseage bes the nurver a prit preview whidow. holude your nare on fee regort fod traty, an eat buan. The merv at heve the following optont a) Devign an about farm to the prowed. (P) raka) Fabuses coururen hiocelackno Piaj4ats MANDAGr 20z2 coverstial b) Cole be cal Abolever wt conmert on It c) Codt the cut buasin wth sormert on it (t) maki? e) Aralyre and prowbe enplenation en the coding beioer Cies minisiteger As hasyer Con lstCongaveltirg An forre. Mag a new movie sile to he ist If novesContedex. fext o = Then Wre movescontudon For indeaterteger o 6 To Aent Court +1 Mestageb. find in eave. mivieu Pombollox FaverO 3. The GU below will maintain a list of movie tides in an array. The user can add and remove movie titles trom the list, clear and print the list. The form will contain a combo box initialized with the following entries: A Dependents Pay, An American Resident, Dancing With Fools, Home By Yourseif, and Ghost Man. There witl be six butions on the form. An add buition that will add an entry to the list using an input box. The user may not add a duplicate ble to the list. A remove button that will remove the selected item off the list. An error is displayed if the user tries to add a blark ttle or remove a tide without first selecting one. A dear all button wall remove all the entries from the list. A count button will display in a message box the number of movie tites can be displayed. The print button will display the 'Movie Libt report in a print preview window. Include your name on the report. And finally, an exit button. The menu will have the following options: a) Design an about form to the project. (3 marks) b) Code to call Aboutflok with comment on it c) Code the exit button with comment on it (2 markn) and the , close () and how it could morka together, it it in possible to do so. (3 marks) e) Analyze and provide explanation on the coding below: Privale Sub AddTootsuripMenultem_Click(ByVal sender As System.Oeject, ByVal e As System. EventArgs) Hancles AddTootS HipMenulten. Click. Dim indexinteger An Integer Dim liatComparestring As String "Add a new movie tile to the list if movienComboBlax. Text o - Then With moviesCombeflow For indexdinteger =0 To Mems.Count 1 IstComparesting = Hems(indexdrteger). Tostring if listComparestring. ToUpper = . Text. ToUpper Then Belectedindex = indexinteger Exit Sub End if Nest Sole End With Else MessagelBox. Show("Enter a movie thle to addr, "Missing data". Messageblexbuitions.OK, . Mensegeboxicon. Exctamation) End if moviesCombollox. Focuso

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

What is Nutriens approach to handling personal information?

Answered: 1 week ago