1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6.

Size: px
Start display at page:

Download "1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6."

Transcription

1 C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed without permission by the publisher). 1

2 1. Windows Forms 2. Event-Handling Model 3. Basic Event Handling 4. Control Properties and Layout 5. Labels, TextBoxes and Buttons 6. GroupBoxes and Panels 7. CheckBoxes and RadioButtons 2

3 Introduction Graphical user interface Allow interaction with program visually Give program distinct look and feel Built from window gadgets Is an object, accessed via keyboard or mouse 3

4 Some GUI components Frame TextBox Menu Bar Scrollbar Button 4

5 Introduction Control Label TextBox Button CheckBox ComboBox ListBox Panel ScrollBar Description An area in which icons or uneditable text can be displayed. An area in which the user inputs data from the keyboard. The area also can display information. An area that triggers an event when clicked. A GUI control that is either selected or not selected. A drop-down list of items from which the user can make a selection, by clicking an item in the list or by typing into the box, if permitted. An area in which a list of items is displayed from which the user can make a selection by clicking once on any element. Multiple elements can be selected. A container in which components can be placed. Allows the user to access a range of values that cannot normally fit in its container. Some basic GUI components. 5

6 Windows Forms WinForms Create GUIs for programs Element on the desktop Represented by: Dialog Window MDI window 6

7 Windows Forms Component Class that implements IComponent interface Lacks visual parts Control Component with graphical part Such as button or label Are visible Event Generated by movement from mouse or keyboard Event handler performs action Specifics written by programmer 7

8 Windows Forms Components and controls for Windows Forms. 8

9 Form Properties and Events Common Properties AcceptButton AutoScroll CancelButton FormBorderStyle Font Text Common Methods Close Hide Show Common Events Load Windows Forms Description / Delegate and Event Arguments Which button will be clicked when Enter is pressed. Whether scrollbars appear when needed (if data fills more than one screen). Button that is clicked when the Escape key is pressed. Border of the form (e.g., none, single, 3D, sizable). Font of text displayed on the form, as well as the default font of controls added to the form. Text in the form s title bar. Closes form and releases all resources. A closed form cannot be reopened. Hides form (does not release resources). Displays a hidden form. (Delegate EventHandler, event arguments EventArgs) Occurs before a form is shown. This event is the default when the form is double-clicked in the Visual Studio.NET designer. Common Form properties and events. 9

10 Event-Handling Model GUIs are event driven Event handlers Methods that process events and perform tasks. Associated delegate Objects that reference methods Contain lists of method references Must have same signature Intermediaries for objects and methods Signature for control s event handler 10

11 Basic Event Handling Event handler Must have same signature as corresponding delegate Two object reference are passed in ControlName_EventName Must be registered with delegate object Add event handlers to the delegate s invocation list New delegate object for each event handler Event multicasting Have multiple handlers for one event Order called for event handlers is indeterminate 11

12 Basic Event Handling List of events supported by control Events icon Selected event Current event handler (none) Event description Events section of the Properties window. 12

13 SimpleEventExample.cs Program Output Click in the Form area get MessageBox pop-up 13

14 1 // SimpleEventExample.cs 2 // Using Visual Studio.NET to create event handlers. 4 using System; 5 using System.Drawing; 6 using System.Collections; 7 using System.ComponentModel; 8 using System.Windows.Forms; 9 using System.Data; 11 // program that shows a simple event handler 12 public class MyForm : System.Windows.Forms.Form 13 { 14 private System.ComponentModel.Container components = null; // Visual Studio.NET generated code 18 [STAThread] 19 static void Main() 20 { 21 Application.Run( new MyForm() ); 22 } 24 // Visual Studio.NET creates an empty handler, 25 // we write definition: show message box when form clicked 26 private void MyForm_Click( object sender, System.EventArgs e ) 27 { 28 MessageBox.Show( "Form was pressed" ); 29 } } // end class MyForm SimpleEventExample.cs 14

15 Basic Event Handling Class name List of events List of Form events. 15

16 Control Properties and Layout Common properties Derive from class Control Text property Specifies the text that appears on a control Focus method Transfers the focus to a control Becomes active control TabIndex property Order in which controls are given focus Automatically set by Visual Studio.NET Enable property Indicate a control s accessibility 16

17 Control Properties and Layout Visibility control Hide control from user Or use method Hide Anchor property Anchoring control to specific location Constant distance from specified location Unanchored control moves relative to the position Docking allows control to spread itself along an entire side Both options refer to the parent container Size structure Allow for specifying size range MinimumSize and MaximumSize property 17

18 Control Properties and Layout Class Control Properties and Methods Common Properties BackColor BackgroundImage Enabled Focused Font ForeColor TabIndex TabStop Text TextAlign Visible Common Methods Description Background color of the control. Background image of the control. Whether the control is enabled (i.e., if the user can interact with it). A disabled control will still be displayed, but grayed-out portions of the control will become gray. Whether a control has focus. (The control that is currently being used in some way.) Font used to display control s Text. Foreground color of the control. This is usually the color used to display the control s Text property. Tab order of the control. When the Tab key is pressed, the focus is moved to controls in increasing tab order. This order can be set by the programmer. If true, user can use the Tab key to select the control. Text associated with the control. The location and appearance varies with the type of control. The alignment of the text on the control. One of three horizontal positions (left, center or right) and one of three vertical positions (top, middle or bottom). Whether the control is visible. Focus Transfers the focus to the control. Hide Hides the control (sets Visible to false). Show Shows the control (sets Visible to true). Class Control properties and methods. 18

19 Control Properties and Layout Before resize After resize Constant distance to left and top sides Anchoring demonstration. 19

20 Control Properties and Layout Darkened bar indicates to which wall control is anchored Click down-arrow in Anchor property to display anchoring window Manipulating the Anchor property of a control. 20

21 Control Properties and Layout Control expands along top portion of the form Docking demonstration. 21

22 Control Properties and Layout Common Layout Properties Common Properties Anchor Dock DockPadding (for containers) Location Size MinimumSize, MaximumSize (for Windows Forms) Description Side of parent container at which to anchor control values can be combined, such as Top, Left. Side of parent container to dock control values cannot be combined. Sets the dock spacing for controls inside the container. Default is zero, so controls appear flush against the side of the container. Location of the upper-left corner of the control, relative to it s container. Size of the control. Takes a Size structure, which has properties Height and Width. The minimum and maximum size of the form. Class Control layout properties. 22

23 Labels, TextBoxes and Buttons Labels Provide text instruction Read only text Defined with class Label Derived from class Control Textbox Class TextBox Area for text input Password textbox Button Control to trigger a specific action Checkboxes or radio buttons Derived from ButtonBase 23

24 Labels TextBoxes and Buttons Label Properties Common Properties Font Text TextAlign Description / Delegate and Event Arguments The font used by the text on the Label. The text to appear on the Label. The alignment of the Label s text on the control. One of three horizontal positions (left, center or right) and one of three vertical positions (top, middle or bottom). Label properties. 24

25 Labels, TextBoxes and Buttons TextBox Properties and Events Common Properties Description / Delegate and Event Arguments AcceptsReturn Multiline PasswordChar ReadOnly ScrollBars Text Common Events TextChanged TextBox properties and events. If true, pressing Enter creates a new line if textbox spans multiple lines. If false, pressing Enter clicks the default button of the form. If true, textbox can span multiple lines. Default is false. Single character to display instead of typed text, making the TextBox a password box. If no character is specified, Textbox displays the typed text. If true, TextBox has a gray background and its text cannot be edited. Default is false. For multiline textboxes, indicates which scrollbars appear (none, horizontal, vertical or both). The text to be displayed in the text box. (Delegate EventHandler, event arguments EventArgs) Raised when text changes in TextBox (the user added or deleted characters). Default event when this control is double clicked in the designer. 25

26 Labels TextBoxes and Buttons Button properties and events Common Properties Text Common Events Click Button properties and events. Description / Delegate and Event Arguments Text displayed on the Button face. (Delegate EventHandler, event arguments EventArgs) Raised when user clicks the control. Default event when this control is double clicked in the designer. 26

27 Text area (a Textbox with properties Multiline and AcceptsReturn set to true.) 27

28 An example GUI Textbox in which can type password Password displayed upon clicking button 28

29 using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace WindowsApplication3_2 / <summary> / Summary description for Form1. / </summary> public class Form1 : System.Windows.Forms.Form private System.Windows.Forms.TextBox textbox1; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button button1; / <summary> / Required designer variable. / </summary> private System.ComponentModel.Container components = null; public Form1() Required for Windows Form Designer support InitializeComponent(); The code Declared components TODO: Add any constructor code after InitializeComponent call 29

30 private void InitializeComponent() this.textbox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.suspendlayout(); textbox1 this.textbox1.location = new System.Drawing.Point(32, 48); this.textbox1.name = "textbox1"; this.textbox1.passwordchar = '*'; this.textbox1.size = new System.Drawing.Size(176, 20); this.textbox1.tabindex = 0; this.textbox1.text = ""; this.textbox1.textchanged += new System.EventHandler(this.textBox1_TextChanged); Event handler for textbox, but never label1 used. (added automatically by vs.net) this.label1.backcolor = System.Drawing.SystemColors.Info; this.label1.location = new System.Drawing.Point(32, 96); this.label1.name = "label1"; this.label1.size = new System.Drawing.Size(176, 23); 30 this.label1.tabindex = 1; Construct components Set property so that chars appear as * when typed in textbox1.

31 button1 this.button1.location = new System.Drawing.Point(48, 144); this.button1.name = "button1"; this.button1.size = new System.Drawing.Size(152, 23); this.button1.tabindex = 2; this.button1.text = "Show password"; this.button1.click += new System.EventHandler(this.button1_Click); Event handler for button. (generated by vs Form1.net, and implemented by programmer). this.autoscalebasesize = new System.Drawing.Size(5, 13); this.clientsize = new System.Drawing.Size(292, 273); this.controls.addrange(new System.Windows.Forms.Control[] { this.button1, this.label1, this.textbox1}); this.name = "Form1"; this.text = "Form1"; this.resumelayout(false); #endregion 31

32 / <summary> / Clean up any resources being used. / </summary> protected override void Dispose( bool disposing ) if( disposing ) if (components!= null) components.dispose(); base.dispose( disposing ); private void button1_click(object sender, System.EventArgs e) label1.text = textbox1.text; private void textbox1_textchanged(object sender, System.EventArgs e) This line added by programmer. #region Windows Form Designer generated code / <summary> / Required method for Designer support - do not modify / the contents of this method with the code editor. / </summary> / <summary> 32

33 / The main entry point for the application. / </summary> [STAThread] static void Main() Application.Run(new Form1()); 33

34 GroupBoxes and Panels Arrange components on a GUI GroupBoxes can display a caption Text property determines its caption Panels can have scrollbar View additional controls inside the Panel 34

35 GroupBoxes and Panels GroupBox Properties Common Properties Description Controls The controls that the GroupBox contains. Text Text displayed on the top portion of the GroupBox (its caption). GroupBox properties. 35

36 GroupBoxes and Panels Panel Properties Common Properties AutoScroll BorderStyle Controls Panel properties. Description Whether scrollbars appear when the Panel is too small to hold its controls. Default is false. Border of the Panel (default None; other options are Fixed3D and FixedSingle). The controls that the Panel contains. 36

37 Before any click. Example After click of button 1 Panel containing 2 buttons 37

38 using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace WindowsApplication3_3 / <summary> / Summary description for Form1. / </summary> public class Form1 : System.Windows.Forms.Form private System.Windows.Forms.GroupBox groupbox1; private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button4; private System.Windows.Forms.Label label1; / <summary> private System.ComponentModel.Container components = null; public Form1() Required for Windows Form Designer support InitializeComponent(); Declared components The code TODO: Add any constructor code after InitializeComponent call 38

39 .. private void InitializeComponent() this.groupbox1 = new System.Windows.Forms.GroupBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); Construct this.panel1 = new System.Windows.Forms.Panel(); this.button3 = new System.Windows.Forms.Button(); components this.button4 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.groupbox1.suspendlayout(); this.panel1.suspendlayout(); this.suspendlayout(); groupbox1 components. this.groupbox1.backcolor = System.Drawing.SystemColors.Desktop; this.groupbox1.controls.addrange(new System.Windows.Forms.Control[] { Configure this.button2, this.button1}); this.groupbox1.font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161))); this.groupbox1.location = new System.Drawing.Point(40, 32); this.groupbox1.name = "groupbox1"; this.groupbox1.size = new System.Drawing.Size(240, 96); this.groupbox1.tabindex = 0; this.groupbox1.tabstop = false; this.groupbox1.text = "GroupBox with 2 buttons"; Hookup to // button1 events this.button1.backcolor = System.Drawing.Color.Red; this.button1.font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161))); this.button1.location = new System.Drawing.Point(16, 40); this.button1.name = "button1"; this.button1.size = new System.Drawing.Size(80, 32); this.button1.tabindex = 0; this.button1.text = "button1"; this.button1.click += new System.EventHandler(this.button1_Click); 39

40 button2 this.button2.backcolor = System.Drawing.Color.Red; this.button2.font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161))); this.button2.location = new System.Drawing.Point(144, 32); this.button2.name = "button2"; this.button2.size = new System.Drawing.Size(80, 32); this.button2.tabindex = 1; this.button2.text = "exit"; this.button2.click += new System.EventHandler(this.button2_Click); panel1 this.panel1.backcolor = System.Drawing.SystemColors.Desktop; this.panel1.controls.addrange(new System.Windows.Forms.Control[] { this.button4, this.button3}); this.panel1.location = new System.Drawing.Point(40, 184); this.panel1.name = "panel1"; this.panel1.size = new System.Drawing.Size(224, 96); this.panel1.tabindex = 1; this.panel1.paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); button3 this.button3.backcolor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(192))); this.button3.font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161))); this.button3.forecolor = System.Drawing.SystemColors.ControlLightLight; this.button3.location = new System.Drawing.Point(16, 48); this.button3.name = "button3"; this.button3.size = new System.Drawing.Size(80, 32); this.button3.tabindex = 0; this.button3.text = "button3"; this.button3.click += new System.EventHandler(this.button3_Click); 40

41 button4 this.button4.backcolor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(192))); this.button4.font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161))); this.button4.forecolor = System.Drawing.SystemColors.ControlLightLight; this.button4.location = new System.Drawing.Point(136, 48); this.button4.name = "button4"; this.button4.size = new System.Drawing.Size(80, 32); this.button4.tabindex = 1; this.button4.text = "button4"; this.button4.click += new System.EventHandler(this.button4_Click); label1 this.label1.backcolor = System.Drawing.Color.Yellow; this.label1.font = new System.Drawing.Font("Microsoft Sans Serif", 12F, (System.Drawing.FontStyle.Bold System.Drawing.FontStyle.Italic), System.Drawing.GraphicsUnit.Point, ((System.Byte)(161))); this.label1.location = new System.Drawing.Point(64, 144); this.label1.name = "label1"; this.label1.size = new System.Drawing.Size(168, 23); this.label1.tabindex = 2; this.label1.text = "no button pressed"; this.label1.textalign = System.Drawing.ContentAlignment.MiddleCenter; Form1 this.autoscalebasesize = new System.Drawing.Size(5, 13); this.clientsize = new System.Drawing.Size(296, 317); this.controls.addrange(new System.Windows.Forms.Control[] { this.label1, this.panel1, this.groupbox1}); this.name = "Form1"; this.text = "Form1"; this.groupbox1.resumelayout(false); this.panel1.resumelayout(false); this.resumelayout(false); #endregion. 41

42 / <summary> / The main entry point for the application. / </summary> [STAThread] static void Main() Application.Run(new Form1()); private void panel1_paint(object sender, System.Windows.Forms.PaintEventArgs e). Event handling for rendering the panel (automatically generated). Event handling code for the four buttons. private void button1_click(object sender, System.EventArgs e) label1.text = "Button 1 pressed"; private void button2_click(object sender, System.EventArgs e) this.close(); private void button3_click(object sender, System.EventArgs e) label1.text = "Button 3 pressed"; private void button4_click(object sender, System.EventArgs e) label1.text = "Button 4 pressed"; 42

43 Checkboxes and RadioButtons State buttons On/off or true/false state Derived from class ButtonBase CheckBox No restriction on usage RadioButton Grouped together Only one can be true 43

44 CheckBoxes and RadioButtons CheckBox events and properties Common Properties Description / Delegate and Event Arguments Checked CheckState Text Common Events CheckedChanged Whether or not the CheckBox has been checked. Whether the Checkbox is checked (contains a black checkmark) or unchecked (blank). An enumeration with values Checked, Unchecked or Indeterminate. Text displayed to the right of the CheckBox (called the label). (Delegate EventHandler, event arguments EventArgs) Raised every time the Checkbox is either checked or unchecked. Default event when this control is double clicked in the designer. CheckStateChanged Raised when the CheckState property changes. CheckBox properties and events. 44

45 CheckBoxes and RadioButtons RadioButton properties and events Common Properties Description / Delegate and Event Arguments Checked Text Common Events Click CheckedChanged Whether the RadioButton is checked. Text displayed to the right of the RadioButton (called the label). (Delegate EventHandler, event arguments EventArgs) Raised when user clicks the control. RadioButton properties and events. Raised every time the RadioButton is checked or unchecked. Default event when this control is double clicked in the designer. 45

46 Example 46

47 using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; The code namespace WindowsApplication3_4 / <summary> / Summary description for Form1. / </summary> public class Form1 : System.Windows.Forms.Form private System.Windows.Forms.CheckBox checkbox1; private System.Windows.Forms.CheckBox checkbox2; private System.Windows.Forms.RadioButton radiobutton1; private System.Windows.Forms.RadioButton radiobutton2; private System.Windows.Forms.RadioButton radiobutton3; private System.Windows.Forms.CheckBox checkbox3; private System.Windows.Forms.CheckBox checkbox4; private System.Windows.Forms.CheckBox checkbox5; private System.Windows.Forms.CheckBox checkbox6; private System.Windows.Forms.CheckBox checkbox7; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button1; / <summary> / Required designer variable. / </summary> private System.ComponentModel.Container components = null; public Form1() Required for Windows Form Designer support 47

48 public Form1() Required for Windows Form Designer support InitializeComponent(); TODO: Add any constructor code after InitializeComponent call #region Windows Form Designer generated code / <summary> / Required method for Designer support - do not modify / the contents of this method with the code editor. / </summary> private void InitializeComponent() this.checkbox1 = new System.Windows.Forms.CheckBox(); this.checkbox2 = new System.Windows.Forms.CheckBox(); this.radiobutton1 = new System.Windows.Forms.RadioButton(); this.radiobutton2 = new System.Windows.Forms.RadioButton(); this.radiobutton3 = new System.Windows.Forms.RadioButton(); this.checkbox3 = new System.Windows.Forms.CheckBox(); this.checkbox4 = new System.Windows.Forms.CheckBox(); this.checkbox5 = new System.Windows.Forms.CheckBox(); this.checkbox6 = new System.Windows.Forms.CheckBox(); this.checkbox7 = new System.Windows.Forms.CheckBox(); this.button3 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.suspendlayout(); 48

49 configure components. )lots of code) button3 this.button3.location = new System.Drawing.Point(32, 208); this.button3.name = "button3"; this.button3.tabindex = 12; this.button3.text = "exit"; this.button3.click += new System.EventHandler(this.button3_Click); button1 this.button1.location = new System.Drawing.Point(24, 120); this.button1.name = "button1"; this.button1.size = new System.Drawing.Size(88, 48); this.button1.tabindex = 13; this.button1.text = "Show Order"; this.button1.click += new System.EventHandler(this.button1_Click); static void Main() Application.Run(new Form1()); private void button3_click(object sender, System.EventArgs e) this.close(); 49

50 .. private void button1_click(object sender, System.EventArgs e) string theorder = ""; if ( radiobutton1.checked) theorder +="small " + '\n' + " "+ '\n'; if ( radiobutton2.checked) theorder += "medium " + '\n' + " "+ '\n'; if ( radiobutton3.checked) theorder += "large " + '\n' + " "+ '\n'; if ( checkbox1.checked) theorder += "sausage " + '\n'; if ( checkbox2.checked) theorder += "pepperoni " + '\n'; if ( checkbox3.checked) theorder += "greenpepper " + '\n'; if ( checkbox4.checked) theorder += "redonion " + '\n'; if ( checkbox5.checked) theorder += "anchovies " + '\n'; if ( checkbox6.checked) theorder += "cheese " + '\n'; if ( checkbox7.checked) theorder += "mashrooms " + '\n'; MessageBox.Show(theOrder); Display MessageBox with the assembled Order. 50

User-Defined Controls

User-Defined Controls C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

C# and.net (1) cont d

C# and.net (1) cont d C# and.net (1) cont d Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis, Hanspeter Mφssenbφck,

More information

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list

ListBox. Class ListBoxTest. Allows users to add and remove items from ListBox Uses event handlers to add to, remove from, and clear list C# cont d (C-sharp) (many of these slides are extracted and adapted from Deitel s book and slides, How to Program in C#. They are provided for CSE3403 students only. Not to be published or publicly distributed

More information

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development

Blank Form. Industrial Programming. Discussion. First Form Code. Lecture 8: C# GUI Development Blank Form Industrial Programming Lecture 8: C# GUI Development Industrial Programming 1 Industrial Programming 2 First Form Code using System; using System.Drawing; using System.Windows.Forms; public

More information

Classes in C# namespace classtest { public class myclass { public myclass() { } } }

Classes in C# namespace classtest { public class myclass { public myclass() { } } } Classes in C# A class is of similar function to our previously used Active X components. The difference between the two is the components are registered with windows and can be shared by different applications,

More information

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0]; 1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / / The main entry point for

More information

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0. Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:

More information

Tutorial 5 Completing the Inventory Application Introducing Programming

Tutorial 5 Completing the Inventory Application Introducing Programming 1 Tutorial 5 Completing the Inventory Application Introducing Programming Outline 5.1 Test-Driving the Inventory Application 5.2 Introduction to C# Code 5.3 Inserting an Event Handler 5.4 Performing a

More information

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this.

this.openfiledialog = new System.Windows.Forms.OpenFileDialog(); this.label4 = new System.Windows.Forms.Label(); this. form.designer.cs namespace final { partial class Form1 { private System.ComponentModel.IContainer components = null; should be disposed; otherwise, false. protected override void Dispose(bool disposing)

More information

Avoiding KeyStrokes in Windows Applications using C#

Avoiding KeyStrokes in Windows Applications using C# Avoiding KeyStrokes in Windows Applications using C# In keeping with the bcrypt.exe example cited elsewhere on this site, we seek a method of avoiding using the keypad to enter pass words and/or phrases.

More information

This is the start of the server code

This is the start of the server code This is the start of the server code using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net; using System.Net.Sockets;

More information

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL:

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL: Send SMS via SOAP API Introduction You can seamlessly integrate your applications with aql's outbound SMS messaging service via SOAP using our SOAP API. Sending messages via the SOAP gateway WSDL file

More information

Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic

Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Outline 6.1 Test-Driving the Enhanced Inventory Application 6.2 Variables 6.3 Handling the TextChanged

More information

CIS 3260 Sample Final Exam Part II

CIS 3260 Sample Final Exam Part II CIS 3260 Sample Final Exam Part II Name You may now use any text or notes you may have. Computers may NOT be used. Vehicle Class VIN Model Exhibit A Make Year (date property/data type) Color (read-only

More information

Visual Studio Windows Form Application #1 Basic Form Properties

Visual Studio Windows Form Application #1 Basic Form Properties Visual Studio Windows Form Application #1 Basic Form Properties Dr. Thomas E. Hicks Computer Science Department Trinity University Purpose 1] The purpose of this tutorial is to show how to create, and

More information

CST242 Windows Forms with C# Page 1

CST242 Windows Forms with C# Page 1 CST242 Windows Forms with C# Page 1 1 2 4 5 6 7 9 10 Windows Forms with C# CST242 Visual C# Windows Forms Applications A user interface that is designed for running Windows-based Desktop applications A

More information

CHAPTER 3. Writing Windows C# Programs. Objects in C#

CHAPTER 3. Writing Windows C# Programs. Objects in C# 90 01 pp. 001-09 r5ah.ps 8/1/0 :5 PM Page 9 CHAPTER 3 Writing Windows C# Programs 5 9 Objects in C# The C# language has its roots in C++, Visual Basic, and Java. Both C# and VB.Net use the same libraries

More information

CSC 211 Intermediate Programming

CSC 211 Intermediate Programming Introduction CSC 211 Intermediate Programming Graphical User Interface Concepts: Part 1 Graphical user interface Allow interaction with program visually Give program distinct look and feel Built from window

More information

Philadelphia University Faculty of Information Technology. Visual Programming

Philadelphia University Faculty of Information Technology. Visual Programming Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji Work Sheet 1 Form, Buttons and labels Properties Changing properties

More information

Overview Describe the structure of a Windows Forms application Introduce deployment over networks

Overview Describe the structure of a Windows Forms application Introduce deployment over networks Windows Forms Overview Describe the structure of a Windows Forms application application entry point forms components and controls Introduce deployment over networks 2 Windows Forms Windows Forms are classes

More information

namespace Tst_Form { private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components;

namespace Tst_Form { private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components; Exercise 9.3 In Form1.h #pragma once #include "Form2.h" Add to the beginning of Form1.h #include #include For srand() s input parameter namespace Tst_Form using namespace System; using

More information

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() A-1 LISTING PROGRAM Form Mainform /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/17/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

More information

Chapter 12 - Graphical User Interface Concepts: Part 1

Chapter 12 - Graphical User Interface Concepts: Part 1 Chapter 12 - Graphical User Interface Concepts: Part 1 1 12.1 Introduction 12.2 Windows Forms 12.3 Event-Handling Model 12.3.1 Basic Event Handling 12.4 Control Properties and Layout 12.5 Labels, TextBoxes

More information

Web Services in.net (2)

Web Services in.net (2) Web Services in.net (2) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial

More information

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

More information

Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects

Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects 1 Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects Outline 19.1 Test-Driving the Microwave Oven Application 19.2 Designing the Microwave Oven Application 19.3 Adding a New

More information

Inheriting Windows Forms with Visual C#.NET

Inheriting Windows Forms with Visual C#.NET Inheriting Windows Forms with Visual C#.NET Overview In order to understand the power of OOP, consider, for example, form inheritance, a new feature of.net that lets you create a base form that becomes

More information

Operatii pop si push-stiva

Operatii pop si push-stiva Operatii pop si push-stiva Aplicatia realizata in Microsoft Visual Studio C++ 2010 permite simularea operatiilor de introducere si extragere a elementelor dintr-o structura de tip stiva.pentru aceasta

More information

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Visual Studio.NET enables quick, drag-and-drop construction of form-based applications Event-driven, code-behind programming Visual Studio.NET WinForms Controls Part 1 Event-driven, code-behind programming

More information

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events Working with Form: properties, methods and events To create a New Window Forms Application, Select File New Project. It will open one dialog box which is shown in Fig 2.1. Fig 2.1 The New Project dialog

More information

UNIT III APPLICATION DEVELOPMENT ON.NET

UNIT III APPLICATION DEVELOPMENT ON.NET UNIT III APPLICATION DEVELOPMENT ON.NET Syllabus: Building Windows Applications, Accessing Data with ADO.NET. Creating Skeleton of the Application Select New->Project->Visual C# Projects->Windows Application

More information

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1

C# Forms and Events. Evolution of GUIs. Macintosh VT Datavetenskap, Karlstads universitet 1 C# Forms and Events VT 2009 Evolution of GUIs Until 1984, console-style user interfaces were standard Mostly dumb terminals as VT100 and CICS Windows command prompt is a holdover In 1984, Apple produced

More information

Controls. By the end of this chapter, student will be able to:

Controls. By the end of this chapter, student will be able to: Controls By the end of this chapter, student will be able to: Recognize the (Properties Window) Adjust the properties assigned to Controls Choose the appropriate Property Choose the proper value for the

More information

Event-based Programming

Event-based Programming Window-based programming Roger Crawfis Most modern desktop systems are window-based. What location do I use to set this pixel? Non-window based environment Window based environment Window-based GUI s are

More information

Flag Quiz Application

Flag Quiz Application T U T O R I A L 17 Objectives In this tutorial, you will learn to: Create and initialize arrays. Store information in an array. Refer to individual elements of an array. Sort arrays. Use ComboBoxes to

More information

Chapter 12: Using Controls

Chapter 12: Using Controls Chapter 12: Using Controls Examining the IDE s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton A Label has been dragged onto Form1

More information

Nasosoft Barcode for.net

Nasosoft Barcode for.net Nasosoft Barcode for.net Table of Contents Overview of Nasosoft Barcode for.net 1 Nasosoft Barcode for.net Features... 1 Install Nasosoft Barcode for.net... 4 System Requirements... 4 Install and Uninstall

More information

#using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll>

#using <System.dll> #using <System.Windows.Forms.dll> #using <System.Drawing.dll> Lecture #9 Introduction Anatomy of Windows Forms application Hand-Coding Windows Form Applications Although Microsoft Visual Studio makes it much easier for developers to create Windows Forms applications,

More information

Introductionto the Visual Basic Express 2008 IDE

Introductionto the Visual Basic Express 2008 IDE 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools. Henri-Louis Bergson Introductionto

More information

Full file at

Full file at T U T O R I A L 3 Objectives In this tutorial, you will learn to: Set the text in the Form s title bar. Change the Form s background color. Place a Label control on the Form. Display text in a Label control.

More information

Unit-1. Components of.net Framework. 1. Introduction to.net Framework

Unit-1. Components of.net Framework. 1. Introduction to.net Framework 1 Unit-1 1. Introduction to.net Framework The.NET framework is a collection of all the tools and utilities required to execute the.net managed applications on a particular platform. The MS.NET framework

More information

Lampiran B. Program pengendali

Lampiran B. Program pengendali Lampiran B Program pengendali #pragma once namespace serial using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms;

More information

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline 11-12am 12-1pm: 1-1:45pm 1:45-2pm:, Overview of.net Framework,.NET Components, C#. C# Language Elements Classes, Encapsulation, Object-Orientation,

More information

Full file at https://fratstock.eu Programming in Visual Basic 2010

Full file at https://fratstock.eu Programming in Visual Basic 2010 OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,

More information

Chapter 2. Creating Applications with Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 2. Creating Applications with Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 2 Creating Applications with Visual Basic Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 2.1 FOCUS ON PROBLEM SOLVING: BUILDING THE DIRECTIONS APPLICATION

More information

Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un

Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un Convertor Binar -> Zecimal Rosu Alin, Calculatoare, An2 Mod de Functionare: Am creat un program, in Windows Form Application, care converteste un numar binar, in numar zecimal. Acest program are 4 numericupdown-uri

More information

Dive Into Visual C# 2010 Express

Dive Into Visual C# 2010 Express Dive Into Visual C# 2010 Express 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools.

More information

Full file at Chapter 2: Creating a User Interface

Full file at   Chapter 2: Creating a User Interface Chapter 2: Creating a User Interface TRUE/FALSE 1. Text boxes accept and display information automatically, so no special event is necessary for them to do their assigned task. T PTS: 1 REF: 84 2. A button

More information

PS2 Random Walk Simulator

PS2 Random Walk Simulator PS2 Random Walk Simulator Windows Forms Global data using Singletons ArrayList for storing objects Serialization to Files XML Timers Animation This is a fairly extensive Problem Set with several new concepts.

More information

CALCULATOR APPLICATION

CALCULATOR APPLICATION CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

Managed C++ and.net Development STEPHEN R. G. FRASER

Managed C++ and.net Development STEPHEN R. G. FRASER Managed C++ and.net Development STEPHEN R. G. FRASER Managed C++ and.net Development Copyright 2003 by Stephen R. G. Fraser All rights reserved. No part of this work may be reproduced or transmitted in

More information

#pragma comment(lib, "irrklang.lib") #include <windows.h> namespace SuperMetroidCraft {

#pragma comment(lib, irrklang.lib) #include <windows.h> namespace SuperMetroidCraft { Downloaded from: justpaste.it/llnu #pragma comment(lib, "irrklang.lib") #include namespace SuperMetroidCraft using namespace System; using namespace System::ComponentModel; using namespace

More information

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1 Events Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime An event is something that happens. Your birthday is an event. An event in programming

More information

Tutorial 3 - Welcome Application

Tutorial 3 - Welcome Application 1 Tutorial 3 - Welcome Application Introduction to Visual Programming Outline 3.1 Test-Driving the Welcome Application 3.2 Constructing the Welcome Application 3.3 Objects used in the Welcome Application

More information

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline Day 1: Morning Introduction to Object-Orientation, Introduction to.net, Overview of.net Framework,.NET Components. C#. Day 1: Afternoon

More information

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Classes and Objects Andrew Cumming, SoC Introduction to.net Bill Buchanan, SoC W.Buchanan (1) Course Outline Introduction to.net Day 1: Morning Introduction to Object-Orientation, Introduction to.net,

More information

3. The first step in the planning phase of a programming solution is to sketch the user interface.

3. The first step in the planning phase of a programming solution is to sketch the user interface. Chapter 2: Designing Applications TRUE/FALSE 1. For an application to fulfill the wants and needs of the user, it is essential for the programmer to plan the application jointly with the user. ANS: T PTS:

More information

and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1

and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1 Chapter 6 How to code methods and event handlers Murach's C# 2012, C6 2013, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Given the specifications for a method, write the method. 2. Give

More information

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Classes and Objects. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Classes and Objects Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline 11-12am 12-1pm: 1-1:45pm 1:45-2pm:, Overview of.net Framework,.NET Components, C#. C# Language Elements Classes,

More information

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies 9 Programming Based on Events C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Chapter Objectives Create applications that use

More information

Interface Design in C#

Interface Design in C# Interface Design in C# Project 1: Copy text from TextBox to Label as shown in the figure. TextBox and Label have the same property: display.text = nameentry.text; private void nameentry_textchanged display.text

More information

1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart?

1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart? 1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart? 6. Define Visual Basic.NET? 7. Define programming language?

More information

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline 2 T U T O R I A L Objectives In this tutorial, you will learn to: Navigate Visual Studio.NET s Start Page. Create a Visual Basic.NET solution. Use the IDE s menus and toolbars. Manipulate windows in the

More information

Laboratorio di Ingegneria del Software

Laboratorio di Ingegneria del Software Laboratorio di Ingegneria del Software L-A Interfaccia utente System.Windows.Forms The System.Windows.Forms namespace contains classes for creating Windows-based applications The classes can be grouped

More information

Laboratorio di Ingegneria del L-A

Laboratorio di Ingegneria del L-A Software L-A Interfaccia utente System.Windows.Forms The System.Windows.Forms namespace contains classes for creating Windows-based applications The classes can be grouped into the following categories:

More information

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Visual Basic.NET. 1. Which language is not a true object-oriented programming language? Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.

More information

Programming in C# Project 1:

Programming in C# Project 1: Programming in C# Project 1: Set the text in the Form s title bar. Change the Form s background color. Place a Label control on the Form. Display text in a Label control. Place a PictureBox control on

More information

.NET XML Web Services

.NET XML Web Services .NET XML Web Services Bill Buchanan Course Outline Day 1: Introduction to Object-Orientation, Introduction to.net, Overview of.net Framework,.NET Components. C#. Introduction to Visual Studio Environment..

More information

Windows Forms in Action by Erik Brown Chapter 3. Copyright 2006 Manning Publications

Windows Forms in Action by Erik Brown Chapter 3. Copyright 2006 Manning Publications Windows Forms in Action by Erik Brown Chapter 3 Copyright 2006 Manning Publications brief contents Part 1 Hello Windows Forms 1 1 Getting started with Windows Forms 3 2 Getting started with Visual Studio

More information

Chapter 13: Handling Events

Chapter 13: Handling Events Chapter 13: Handling Events Event Handling Event Occurs when something interesting happens to an object Used to notify a client program when something happens to a class object the program is using Event

More information

UNIT-3. Prepared by R.VINODINI 1

UNIT-3. Prepared by R.VINODINI 1 Prepared by R.VINODINI 1 Prepared by R.VINODINI 2 Prepared by R.VINODINI 3 Prepared by R.VINODINI 4 Prepared by R.VINODINI 5 o o o o Prepared by R.VINODINI 6 Prepared by R.VINODINI 7 Prepared by R.VINODINI

More information

EPSON RC+ 7.0 Option. GUI Builder 7.0 EM145A2719F. Rev. 2

EPSON RC+ 7.0 Option. GUI Builder 7.0 EM145A2719F. Rev. 2 EPSON RC+ 7.0 Option GUI Builder 7.0 Rev. 2 EM145A2719F EPSON RC+ 7.0 Option GUI Builder 7.0 Rev.2 EPSON RC+ 7.0 Option GUI Builder 7.0 Rev.2 Copyright 2012-2014 SEIKO EPSON CORPORATION. All rights reserved.

More information

Chapter 2. Ans. C (p. 55) 2. Which is not a control you can find in the Toolbox? A. Label B. PictureBox C. Properties Window D.

Chapter 2. Ans. C (p. 55) 2. Which is not a control you can find in the Toolbox? A. Label B. PictureBox C. Properties Window D. Chapter 2 Multiple Choice 1. According to the following figure, which statement is incorrect? A. The size of the selected object is 300 pixels wide by 300 pixels high. B. The name of the select object

More information

Chapter 6 Dialogs. Creating a Dialog Style Form

Chapter 6 Dialogs. Creating a Dialog Style Form Chapter 6 Dialogs We all know the importance of dialogs in Windows applications. Dialogs using the.net FCL are very easy to implement if you already know how to use basic controls on forms. A dialog is

More information

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets-

Philadelphia University Faculty of Information Technology. Visual Programming. Using C# -Work Sheets- Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji 2018 Work Sheet 1 Hello World! 1. Create a New Project, Name

More information

SMITE API Developer Guide TABLE OF CONTENTS

SMITE API Developer Guide TABLE OF CONTENTS SMITE API Developer Guide TABLE OF CONTENTS TABLE OF CONTENTS DOCUMENT CHANGE HISTORY GETTING STARTED Introduction Registration Credentials Sessions API Access Limits API METHODS & PARAMETERS APIs Connectivity

More information

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application

More information

Web Services in.net (7)

Web Services in.net (7) Web Services in.net (7) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial

More information

Chapter 12: Using Controls

Chapter 12: Using Controls Chapter 12: Using Controls Using a LinkLabel LinkLabel Similar to a Label Provides the additional capability to link the user to other sources Such as Web pages or files Default event The method whose

More information

SPARK. User Manual Ver ITLAQ Technologies

SPARK. User Manual Ver ITLAQ Technologies SPARK Forms Builder for Office 365 User Manual Ver. 3.5.50.102 0 ITLAQ Technologies www.itlaq.com Table of Contents 1 The Form Designer Workspace... 3 1.1 Form Toolbox... 3 1.1.1 Hiding/ Unhiding/ Minimizing

More information

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1)

Introduction to.net. Andrew Cumming, SoC. Introduction to.net. Bill Buchanan, SoC. W.Buchanan (1) Andrew Cumming, SoC Bill Buchanan, SoC W.Buchanan (1) Course Outline Day 1: Morning Introduction to Object-Orientation, Introduction to.net, Overview of.net Framework,.NET Components. C#. Day 1: Afternoon

More information

Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project

Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project 1 Course 2DCis: 2D-Computer Graphics with C# Chapter C5: Comments to the Controls Project Copyright by V. Miszalok, last update: 04-01-2006 using namespaces using System; //Namespace of the base class

More information

IBSDK Quick Start Tutorial for C# 2010

IBSDK Quick Start Tutorial for C# 2010 IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup

More information

Chapter 12. Tool Strips, Status Strips, and Splitters

Chapter 12. Tool Strips, Status Strips, and Splitters Chapter 12 Tool Strips, Status Strips, and Splitters Tool Strips Usually called tool bars. The new ToolStrip class replaces the older ToolBar class of.net 1.1. Create easily customized, commonly employed

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

More information

CSC 330 Object-Oriented Programming. Encapsulation

CSC 330 Object-Oriented Programming. Encapsulation CSC 330 Object-Oriented Programming Encapsulation Implementing Data Encapsulation using Properties Use C# properties to provide access to data safely data members should be declared private, with public

More information

GUI Components: Part 1

GUI Components: Part 1 1 2 11 GUI Components: Part 1 Do you think I can listen all day to such stuff? Lewis Carroll Even a minor event in the life of a child is an event of that child s world and thus a world event. Gaston Bachelard

More information

Ingegneria del Software T. Interfaccia utente

Ingegneria del Software T. Interfaccia utente Interfaccia utente Creating Windows Applications Typical windows-application design & development 1+ classes derived from System.Windows.Forms.Form Design UI with VisualStudio.NET Possible to do anything

More information

Visual C# Program: Simple Game 3

Visual C# Program: Simple Game 3 C h a p t e r 6C Visual C# Program: Simple Game 3 In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor Beginning a

More information

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version

More information

Forms/Distribution Acrobat X Professional. Using the Forms Wizard

Forms/Distribution Acrobat X Professional. Using the Forms Wizard Forms/Distribution Acrobat X Professional Acrobat is becoming a standard tool for people and businesses to use in order to replicate forms and have them available electronically. If a form is converted

More information

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7 PROGRAMMING DESIGN USING JAVA (ITT 303) Graphical User Interface Unit 7 Learning Objectives At the end of this unit students should be able to: Build graphical user interfaces Create and manipulate buttons,

More information

2 USING VB.NET TO CREATE A FIRST SOLUTION

2 USING VB.NET TO CREATE A FIRST SOLUTION 25 2 USING VB.NET TO CREATE A FIRST SOLUTION LEARNING OBJECTIVES GETTING STARTED WITH VB.NET After reading this chapter, you will be able to: 1. Begin using Visual Studio.NET and then VB.NET. 2. Point

More information

Dive Into Visual C# 2008 Express

Dive Into Visual C# 2008 Express 1 2 2 Dive Into Visual C# 2008 Express OBJECTIVES In this chapter you will learn: The basics of the Visual Studio Integrated Development Environment (IDE) that assists you in writing, running and debugging

More information

Object oriented lab /second year / review/lecturer: yasmin maki

Object oriented lab /second year / review/lecturer: yasmin maki 1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return

More information

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming Introduction to the Visual Studio.NET Integrated Development Environment IDE CSC 211 Intermediate Programming Visual Studio.NET Integrated Development Environment (IDE) The Start Page(Fig. 1) Helpful links

More information

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE 1 Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE Outline 2.1 Test-Driving the Welcome Application 2.2 Overview of the Visual Studio.NET 2003 IDE 2.3 Creating a Project for the

More information

Subject to Change Drawing Application 1 Introducing Computers, the Internet and C#

Subject to Change Drawing Application 1 Introducing Computers, the Internet and C# CO N T E N T S Subject to Change 08-01-2003 Preface Before You Begin Brief Table of Contents i iv vii 1 Drawing Application 1 Introducing Computers, the Internet and C# 1.1 What Is a Computer? 1 1.2 Computer

More information