CIT-2251-Event-Driven-Programming.doc-1
CIT-2251-Event-Driven-Programming.doc-1
a) List three reasons why VB.net is a widely used professional language (3 marks)
b) Name three services that can be written on the .net framework platform (3 marks)
c) Explain the difference between a list box and combo box (4 marks)
e) Explain the typical uses of the following control tools as used in visual basic
(3 marks)
i. Label
ii. Textbox
iii. Button
f) Distinguish between the following methods in Visual Basic when forms (4 marks)
iii. Write a statement that could be used to display a form called frmain (1 mark)
c) Write a VB program that allows a user to enter the strings ‘Alex’ and 1234 into
respective textboxes in a login screen. If the two are valid, a form named frmain is
opened, otherwise a message ‘invalid name or password’ is displayed on a message
box. Attach the code to a command button (7 marks)
d) State two examples of database supported by visual basic program (2 marks)
e) Outline the function of each of the following elements of the Integrated Development
Environment (IDE) in a visual basic program
i. Project form (1 mark)
ii. Menu bar (1 mark)
iii. Tool bar (1 mark)
iv. Code window (1 mark)