In this part we will bind to a class. We will start off by creating a grid to display the properties of the class. Finally we will show how to get the form to update itself when a value changes in the class.
Lets start off creating a class that shows some info about the computer. Here is the class.
Public Class ComputerInfo
Public ReadOnly Property UserName() As String Get Return Environment.UserName End Get End Property Public ReadOnly Property ComputerName() As String Get Return Environment.MachineName End Get End Property Public ReadOnly Property UpTime() As Integer Get Return Environment.TickCount End Get End Property
No comments:
Post a Comment