Chad Z. Hower aka Kudzu said:
I have to make a case of why existing VB users should like VB.NET.
ie, as a VB (6 or other) user what in VB.NET would interest you as a
developer?
I have a list that I am building, but would appreciate any additional
ideas that you guys have.
Some keywords (from my list) without specific order:
- Option Strict
- Inheritance
- Namespaces
- Common type system
- Everything is an object
- VB6 "specials" removed:
-- Why can't Forms and Controls be declared Public?
-- What is the type of a control array?
-- Why do I get error 91 in the second line?
Command1(index) *is* a CommandButton.
Private Sub Command1_Click(Index As Integer)
Dim cmd As CommandButton
cmd = Command1(Index)
End Sub
-- What strange syntax is this:
pic.line (0,0) - (100, 100), vbWhite, BF
Why not always separate arguments by a ","? What is "BF"? A string,
a constant or what?
-- Why can't I write ".Line..." within a With block?
- free threading
- Interfaces
- constructors
- overloaded members
- IDE and app in separate processes
- less "under-the-hood"
- On errors: complete callstack including error line possible
- dynamic error handling (add-/removehandler)
- optimized performance due to inline compiling of simple property get
procedures
- Public fields are public fields, not properties
- IDE: "go to definition" includes types
- "rich" framework/runtime (e.g. encoding classes, reflection...)
- Delegates: typed function pointers
- full control, eg. overwriting WndProc
- variables at block level
- OrElse, AndAlso keywords
- Keywords as names in code
- No forced default Form instance
- Redim requires Dim
- Creation of empty arrays possible
- Improved variable declaration
- Nested classes
- Compiler checks ranks of arrays
- GC improves usage of circular object references
- improved performance due to GC (no reference counting)
- New operators (+=, -=, ...)
- (Improved) creation of new menuitems, menus, controls
- Improved way to handle enumeration
- Char, Long, Decimal data types
- Shared members
- Return statement
- MDI container and children in different projects
- Me.Member also possible for private members (intellisense)
--
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html