Вы находитесь на странице: 1из 2

Week 4

Some commonly used operators


https://msdn.microsoft.com/en-us/library/s0b0c0z1(v=vs.90).aspx

The most used operator: assignment operator =

The equal to operator == (this is one of relational operators or comparison operators)

Five arithmetic operators: + , -, * , / , %

Methods
ToString ( ) method

A math method: Math.Pow(number, anotherNumber)

The methods double.TryParse and int.TryParse (preview)

More about GUI


Add an icon for your application

TextBox (Textboxes compared with labels)

Textboxes and identifying labels

Tab Order and TabIndex property (skills: setting tab order)

Setting the TabStop property

Assign access keys to Buttons

Assign access key to a textbox.


a. create an identifying label;
b. assign access key to that label;
c. set tab order so that the identifying label is immediately before the textbox in tab order.
Review A project:
GUI: (Code will be supplied by students in class)

Some of the controls:

lblTitle, lblDisplay, txtInput, btnAssignment

Вам также может понравиться