You are on page 1of 3

WinForm Lab1 WFC# - Lab1 You are required to create a form as below: A CheckedListBox And one group Demo

mo contains the following controls: o A label o A textbox txtNewValue o buttons o A checkbox o A listbox

You should name the controls in a con!ention" #" $hen users click the Add button: %f the !alue of the textbox txtNewValue is not empt&' then add this !alue into the checkedlistbox' else show an error message (" $hen user click )dit button: *ake sure that users alread& select an item in the checkedlistbox )nter the new !alue in the txtNewValue to replace the !alue of the selected item" Also check that the !alue of txtNewValue is not empt& +" $hen users click ,elete button: #

WinForm Lab1 *ake sure that users alread& select an item in the checkedlistbox ,elete the selected item in the checkedlistbox " $hen users click the -how button: )nsure that users check at least an item -how all checked items in a message box ." $hen users check or uncheck the checkbox' check or uncheck all the items in the checkedlistbox respecti!el&" /" $hen users checked or uncheck the items in the checkedlistbox %f users check an item then add it into the listbox %f users uncheck an item the remo!e it from the listbox 0" Now &ou need to create a class employee that contains two fields 1irstName LastName Customi2e the class emplo&ee so that &ou can add the 1irstName and the LastName as an item into the checkedlistbox" 1or example:

WinForm Lab1

You might also like