CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 3 Tariq Aziz and Kevin Jones.

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
Advertisements

CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
Programming Based on Events
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 2 Tariq Aziz and Kevin Jones.
ListBoxes The list box control allows the user to view and select from multiple items in a list. CheckedListBox control extends a list box by including.
Group Boxes and Panels Arrange components on a GUI Buttons and etc. can be placed inside a group box or panel. All these buttons move together when the.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Compunet Corporation Programming with Visual Basic.NET GUI Chapter 3 Week 13 Tariq Aziz and Kevin Jones.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Lab 9 – User Forms Design. User Forms What are user forms? –Known as dialog boxes –Major ways for getting user input An example of using user forms: Monthly.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Ch 11: Userforms CP212 Winter Topics Designing User Forms o Controls Setting Properties o Tab Order o Testing Writing Event Handlers o Userform_Initialize.
1- Date TimePicker 2- Month Calendar 3- User Defined Controls.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
1 Graphical User Interfaces Part 2 Outline ListBoxes and CheckedListBoxes ListBoxes CheckedListBoxes ComboBoxes.
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
110 M - 1 ListBoxes & ComboBoxes Provide a list for the user to select from Various styles, choose based on –Amount of data to be displayed –Space available.
GUI development with Matlab: GUI Front Panel Components 1 GUI front panel components In this section, we will look at -GUI front panel components -Programming.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
ListBox, ComboBox, Menu Chapter 5.4, ComboBox Control: Properties & Methods u Combines TextBox features with a short drop- down list  cboOne.AddItem(string)
Graphical User Interface Concepts - Part 2 Session 09 Mata kuliah: M0874 – Programming II Tahun: 2010.
Graphical User Interfaces Tonga Institute of Higher Education.
Class 3 Remote Instruction Computer Math EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Object-Oriented Application Development Using VB.NET 1 Chapter 10 VB.NET GUI Components Overview.
7-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Controls Part 2. DateTimePicker Control Used for representing Date/Time information and take it as input from user. Date information is automatically.
1 Chapter 4 – Decisions 4.1 Relational and Logical Operators (see other set of slides) 4.2 If Blocks (see other set of slides) 4.3 Select Case Blocks (see.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
 A ListBox control displays a list of items and allows the user to select one or more  Drag from Toolbox to create this control on a form.
Iterations (aka Loops). 2 Loops Loops (iterations) are segments of code that may be executed several times. Fixed-count (definite) loops repeat a fixed.
Unit 6 Repetition Processing Instructor: Brent Presley.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Compunet Corporation Programming with Visual Basic.NET Working with Menus and Dialog Boxes Week 14 Tariq Aziz and Kevin Jones.
Understand Databound Controls Windows Development Fundamentals LESSON 4.2A.
IMS 3253: Controls 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Check Boxes Radio Buttons Date Time Picker Masked.
Java Swing Controls. JButton One of the most commonly used swing component is Push Button or simply button which is created through JButton class of Swing.
Iterations (aka Loops). 2 Loops Loops (iterations) are segments of code (loop body) that may be executed several times. Fixed-count (definite) loops repeat.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Using Forms and Form Elements In Visual Basic.NET.
Course ILT Using complex selection structures Unit objectives Include radio buttons and check boxes in an interface, create and call a user- defined Sub.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
COMPUTER PROGRAMMING I Apply Procedures to Develop List Box and Combo Box Objects.
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Computing with C# and the .NET Framework
Chapter Topics 15.1 Graphical User Interfaces
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Using Procedures and Exception Handling
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Microsoft Visual Basic 2005: Reloaded Second Edition
CIS16 Application Development and Programming using Visual Basic.net
CIS 16 Application Development Programming with Visual Basic
Introduction to Problem Solving and Control Statements
Web Development Using ASP .NET
Chapter 15: GUI Applications & Event-Driven Programming
Visual C# - GUI and controls - 1
F T T T F.
Group Boxes, Radio buttons and Checked List Boxes
GUI Programming in Visual Studio .NET
CHAPTER FOUR VARIABLES AND CONSTANTS
Presentation transcript:

CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 3 Tariq Aziz and Kevin Jones

CA 121 Intro to Programming Tariq Aziz and Kevin Jones Overview Chapter 3 is about using Toolbox controls in Visual Studio.NET. TextBox Button CheckBox RadioButton ListBox ComboBox DateTimePicker LinkLabel

CA 121 Intro to Programming Tariq Aziz and Kevin Jones TextBox The TextBox control provides a way for your program to get text input from the user. He simply types text in the textbox. The text entered by the user is stored in the Text property of the Textbox. You can access it as follows TextBox1.Text

CA 121 Intro to Programming Tariq Aziz and Kevin Jones Example – Ch. 1 This event procedure contains code that will be executed when the user clicks the Answer button at run-time.

CA 121 Intro to Programming Tariq Aziz and Kevin Jones Button The Button control provides a way for your program to get click input from the user. He simply clicks a button when he wants to initiate some response from the program. The text displayed inside the button is stored in the Text property of the Button, which is usually defined by the programmer through the Properties window at design time. When the user clicks the button at runtime, the corresponding event procedure is invoked, which will perform the actions associated with the button. By default, the name of the event procedure is the concatenation of the name of the button with the string “_Click”, e.g. Button1_Click() for Button1.

CA 121 Intro to Programming Tariq Aziz and Kevin Jones CheckBox The CheckBox control provides a way for your program to get on/off input from the user. The checkbox is a toggle switch; the user clicks in the checkbox to turn it off or on. A group of checkboxes allows the user to select zero or more choices from the group. Selection of one checkbox of a group is independent of the other checkboxes (see radio buttons for contrast). The CheckedState property stores the on/off state of the checkbox. If the user has checked the checkbox, CheckedState = True; otherwise, it is False. You can access the CheckedState property as follows: CheckBox1.CheckedState

CA 121 Intro to Programming Tariq Aziz and Kevin Jones RadioButton The RadioButton control provides a way for your program to get on/off input from the user. The radio button is a toggle switch; the user clicks in the radio button to turn it off or on. A group of radio buttons allows the user to select exactly one choice from the group. The difference between the behavior of a radio button and a checkbox is that when the user clicks a radio button, all other radio buttons in the same group are turned off. The CheckedState property stores the on/off state of the radio button. If the user has selected the radio button, CheckedState = True; otherwise, it is False. You can access the CheckedState property as follows: RadioButton1.CheckedState

CA 121 Intro to Programming Tariq Aziz and Kevin Jones ListBox The ListBox control provides a way for your program to allow the user to choose an item from a list. He simply clicks on the item in the ListBox to select it. All items in the list box appear on the form. The SelectedIndex property of the list box stores the index of the list item that was selected by the user. ListBox1.SelectedIndex SelectedIndex counting starts at 0. For example, say we have a list of five items: US Dollar, Saudi Riyal, British Pound, Japanese Yen, and Euro. Each item would have indices 0, 1, 2, 3, and 4, respectively. For example, if the user selects British Pound, the SelectedIndex property of the ListBox would be set to 2.

CA 121 Intro to Programming Tariq Aziz and Kevin Jones ComboBox The ComboBox control provides a way for the user to select an item from a list. It’s very similar to a ListBox, except that the whole list is not displayed directly on the form. Instead, the list is only displayed when the user clicks the drop- down arrow. Once the user makes his selection, the selection is displayed in the combo box on the form. For this reason, the combo box is also called a drop-down listbox. The combo box also has a SelectedIndex property, which stores the index of the selected item.

CA 121 Intro to Programming Tariq Aziz and Kevin Jones DateTimePicker The TextBox control provides a way for your program to get text input from the user. He simply types text in the textbox. The text entered by the user is stored in the Text property of the Textbox. You can access it as follows TextBox1.Text

CA 121 Intro to Programming Tariq Aziz and Kevin Jones LinkLabel The TextBox control provides a way for your program to get text input from the user. He simply types text in the textbox. The text entered by the user is stored in the Text property of the Textbox. You can access it as follows TextBox1.Text