Integrated Information Systems: I'm Learning All The Time. The Thombstone Will Be My Diploma
Integrated Information Systems: I'm Learning All The Time. The Thombstone Will Be My Diploma
NET
Jajang
IT Administrator
Jajang@mr.semangat.com
What is .NET?
.NET Framework
Visual Studio.NET
Visual Basic.NET
Q&A
http://www.microsoft.com/net/
http://www.microsoft.com/business/vision/netvision.asp
Visual Studio.NET
.NET Framework
Windows.NET
Whistler (Windows XP)
http://msdn.microsoft.com/net
VB C++ C# JScript
Visual Studio.NET
ASP.NET: Web Services Windows
Windows
and Web Forms Forms
Forms
Source VB C# C++
code Unmanaged
Compiler Compiler Compiler
Component
JIT Compiler
Native Code
Unified Classes
Web Classes (ASP.NET)
Controls, Caching, Security, Session, Configuration etc
System Classes
Collections, Diagnostics, Globalization, IO, Security,
Threading Serialization, Reflection, Messaging etc
Visual J++ has been removed from the Visual Studio suite.
http://msdn.microsoft.com/vstudio
Leave it in VB6
WebClasses, ActiveX Documents, DHTML Projects
Thinking in VB.NET
Data Types, Type vs. Structure
Property Functions, Zero Bound Arrays
Default Parameters
New Features
Forms Designer, Declaration Syntax
Structured Exception Handling
Overloading, Inheritance
Free Threading
ADO.NET
True is now = 1
Integer Data type has changed
Short (Int16), Integer (Int32), Long (Int64)
VB 6
Dim intAge As Integer
Dim intID As Long
VB.NET
VB.NET
Structure Customer
Public CustomerNumber as Integer
Public CustomerName As String
Public CustomerCompany As String
End Structure
VB 6
Public Property Get CustomerName() As String
CustomerName = m_CustName
End Property
Public Property Let CustomerName(sCustName As String)
m_CustName = sCustName
End Property
VB.NET
Public Property CustomerName() As String
Get
CustomerName = m_CustName
End Get
Set
m_CustName = Value
End Set
End Property
VB.NET
txtAddress.Text = rs(Addr_1).value
lblFName.Text = First Name
Note: Recordset (COM ADO) is not the preferred data storage object in VB.NET, this is just an example.
VB.NET
VB.NET
Try
...
Catch
error handling
Finally
clean up
End Try
ADOConnection
Similar to Connection object in ADO
ADOCommand
Similar to Command object in ADO
ADODataSetCommand
Somewhat like Recordsets for ADO.NET (DataSet)
Designed for stateless operations
ADODataReader
For streaming methods, similar to Stream
SQLConnection, SQLCommand, and
SQLDataSetCommand, SQLDataReader
Avoid
Web Classes, ActiveX Docs, DHTML Apps
Development Techniques
Early Binding
Dont use Default Properties
Use Constants (such as true)
Avoid GoSub
Use ByVal and ByRef explicitly (ByVal is now
default)
Use ADO
VB6 to VB.NET Conversion Techniques
Relax, take breaks often
A UI Component
WinForm a Window displayed by an
application
Web Forms are page hosted in a browser
Textboxes
Buttons
Tool Strip Menu
Picture
Labels