I was just watching a video on MSDN Channel 9 which can be found here, about some of the new features in Visual Basic 10. Now I like most of the new features, some of which hav
I can think of two reasons off the top of my head why I love it! Been waiting too long for this.
First:
Private Sub SomeMethod()
Dim SomeVariable as String = "Some text."
AddHandler SomeButton.Click, Sub()
SomeVariable += " Some more text"
MessageBox.Show(SomeVariable)
End Sub
Second:
Private Sub SomeMethodRunningInAnotherThread()
Me.Dispatcher.Invoke(Normal, Sub()
'Do some other stuff '
SomeTextBox.Text = "Test"
End Sub)
End Sub