Adavanced visual programming , Exercises of Computer Programming

Visual programming exercises using programming language c#

Typology: Exercises

2017/2018

Uploaded on 03/23/2018

jeremie-delort
jeremie-delort ๐Ÿ‡ฒ๐Ÿ‡บ

1 document

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
UNIVERSITE DES MASCAREIGNES
Advanced Visual Programming
Sample Questions
QUESTION 1
frmCustomers (shown below) has been designed to collect data about customers. Validation features need
to be implemented.
Adv.Visual Programming
Sample Questions
UDM, 2017 Page - 1 โ€“
S. Horree
txtCustID,
txtLastName,
txtFirstName,
cboTown,
dtpBirthDate,
mtxtPhone,
txtCreditLimit,
pf3
pf4
pf5

Partial preview of the text

Download Adavanced visual programming and more Exercises Computer Programming in PDF only on Docsity!

UNIVERSITE DES MASCAREIGNES

Advanced Visual Programming

Sample Questions

QUESTION 1

frmCustomers (shown below) has been designed to collect data about customers. Validation features need to be implemented.

Sample Questions

UDM, 2017 Page - 1 โ€“

txtCustID, txtLastName,

txtFirstName,

cboTown,

dtpBirthDate,

mtxtPhone,

txtCreditLimit,

  1. txtCustID and txtLastName are required fields. Write code to check that data has been entered in these text boxes.
  2. Write code to check that a value has been selected in cboTown.
  3. Write code to check that a date has been chosen in DateTimePicker, dtpBirthDate.
  4. A MaskedTextBox, mtxtPhone is used to input phone data. The mask has already been set. Write code to display a message when an invalid character is entered. Also, write code to check whether the input in mtxtPhone is valid.

Sample Questions

UDM, 2017 Page - 1 โ€“

  1. Write code for the Form Load event where data is filled in dataset, dbXYZDataset.
  2. Give an outline of how data in gender field can be bound to radio buttons (rbMale and rbFemale).
  3. Give an outline of how data in the town field can be bound to combo box, cboTown.
  4. Write code for btnLast and btnNext click events.
  5. Write code such that clicking on btnAdd enables to add a new customer record using the CustomersBindingSource object.
  6. Clicking on btnDelete must delete the record that is currently displayed. Write the corresponding code.
  7. Write code that will cancel addition or editing of a record when btnCancel is clicked.

Sample Questions

UDM, 2017 Page - 1 โ€“

  1. A search feature needs to be implemented. It will enable the user to search for a customer by

entering a custID in a text box named txtSearchCustID. Clicking on btnSearch will perform the search process. If the customer is not found, a message must be displayed. If customer is found, his record must be displayed on the form. Write code to implement the search feature. State any query/method that you need to create for the data adapter, customersTableAdapter.

Sample Questions

UDM, 2017 Page - 1 โ€“