Computer Science Visual Programming C Dr Al Hussien




















- Slides: 20
Computer Science Visual Programming (C#) Dr. Al Hussien Seddik Saad Dept. of Computer Science Faculty of Science Minia University A. H. Seddik 1
Computer Science Lecture (3) A. H. Seddik 2
Computer Science Label A. H. Seddik 3
Lecture (3) Visual Programming (C#) Label properties and events almost the same as previous controls (won’t be discussed again) A. H. Seddik 4
Lecture (3) Visual Programming (C#) Label (Contd. ) A. H. Seddik 5
Computer Science Text. Box A. H. Seddik 6
Lecture (3) Visual Programming (C#) Text. Box properties & events almost the same as previous controls (won’t be discussed again) A. H. Seddik 7
Lecture (3) Visual Programming (C#) Text. Box (Contd. ) Password must be hidden !!!!!!! How ? A. H. Seddik 8
Lecture (3) Visual Programming (C#) Text. Box (Contd. ) There an important properties that is called Use. System. Password. Char that is made true when the text box holds passwords, and Multiline that allow to write more than one line in the text box and Scroll. Bars. A. H. Seddik 9
Lecture (3) Visual Programming (C#) Text. Box (Contd. ) So, How these text. Boxes Can be used ? ? A. H. Seddik 10
Lecture (3) Visual Programming (C#) Text. Box (Contd. ) Create the following C# windows Application that reads the username and the password then displays them in messagebox when the button is clicked. A. H. Seddik 11
Lecture (3) Visual Programming (C#) Text. Box (Contd. ) Double Click on button to activate the default event (Button 1_Click) A. H. Seddik 12
Lecture (3) Visual Programming (C#) Text. Box (Contd. ) Testing the Application. . . A. H. Seddik 13
Lecture (3) Visual Programming (C#) Check Your Knowledge Create the following C# windows Application Calculator. Double Click on (+) button to activate the default event (Button 1_Click) A. H. Seddik 14
Lecture (3) Visual Programming (C#) Assignment 1 Complete the previous Application (-, *. /) and add a new button called RESET to clear the text boxes and the result label. A. H. Seddik 15
Lecture (3) Visual Programming (C#) Check Your Knowledge Create the following C# windows Application (Mini Word) formats the text as shown Button 3 Button 7 Button 2 Button 1 Button 4 Button 5 A. H. Seddik Button 6 16
Lecture (3) Visual Programming (C#) The Answer A. H. Seddik 17
Lecture (3) Visual Programming (C#) Check Your Knowledge A. H. Seddik 18
Lecture (3) Visual Programming (C#) The Answer Single click on the textbox 1, choose the event Text. Changed ( or Double Click on the textbox 1 as the Text. Changed event is the default event for the Text. Box control). A. H. Seddik 19
Computer Science End of Lecture (3) A. H. Seddik 20