Lab 4
Lab 4
Part 3
Demo Projects:
Bhushan Mulmule
[email protected]
www.dotnetvideotutorial.com
www.dotnetvideotutorial.com
Project 1: Employee Information Form
Using Advance Controls TextBox:
Step 1: Design UI: Refer instructions below for details Name: txtDetails
MultiLine: True
MaskTextBox:
Name: mskTxtEmpNo
Mask: 0000
TextBox:
Name: txtName
TextBox:
Name: txtAddress
MultiLine: True
ComboBox:
Name: cmbCity
Items: Nagpur, Pune,
Mumbai, Banglore, Nanded
,Nainital.
AutoCompliteSource:
ListItems
AutoCompliteMode:
Suggest
ListBox:
Name: lstState
DateTimePicker:
Name: dtpDOB
RadioButtons:
Format: Custom
Name: radMale, radFemale
CustomFormat: dd/MM/yyyy
www.dotnetvideotutorial.com
o Note: Strings are immutable and creates new object with every
concatenation. So this can be done better using StringBuilder Class.
(When you need to concatenate string number of times you should use
StringBuilder Class) Read about it and try to implement same thing using
StringBuilder class after finishing this walkthrough.
www.dotnetvideotutorial.com
string hobbies="";
foreach (string h in chkLstHobbies.CheckedItems)
hobbies += h + "\r\n\t";
details += "\r\nHobbies: " + hobbies;
txtDetails.Text = details;
}
www.dotnetvideotutorial.com