Quote Originally Posted by SearchingDataOnly View Post
In addition, due to the simple and powerful visualized IDE of VB6, we rarely use or write the following code:
Code:
 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Dim b As New Button

        b.Text = "Click me!"
        b.Width = 150
        b.Height = 30
        b.Left = 10
        b.Top = 30

        AddHandler b.Click, AddressOf EH_Click
        Me.Controls.Add(b)

    End Sub

    Public Sub EH_Click(ByVal sender As Object, ByVal e As EventArgs)
        MessageBox.Show("Clicked.")
    End Sub
We just need to use:
Code:
Sub Button1_Clic()
    MsgBox "Clicked"
End Sub
We have a designer in .Net as well. I only chose to do it by code to illustrate how we tend to write our logic. It was perhaps not the best example as it's too contrived. We'd almost never write UI code like that in .Net.