Wednesday, August 27, 2008

Lesson 3

Coder's Log: 2008.04

I just finished lesson 3...
Lesson 3: Writing Code to Handle Events and Set Properties

This lesson gives an overview of an event handler and explains how to write code to react to events. You will learn how to set properties for controls, as well as how to use IntelliSense, add comments to your code, and use code regions.

Video Duration: 24 minutes, 44 seconds
Notes:
  • Intellisense
  • Comment your code.
  • Method
  • Event/event handler
  • Region / roll-ups
  • Enable line numbers
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' This is a code comment.

TextBox1.Text = "Hello World"
TextBox1.Text = "Hello World"

' this is a hyperlink to comment:
' http://codext.blogspot.com/

End Sub

#Region " this is a region "

' this is a code region. in this case
' it contains nothing in particular...
' but we'll use regions in our project
' to better organize our code.
#End Region

End Class

No comments: