|
-
Mar 26th, 2023, 10:10 PM
#20
Re: RAD Basic vs TwinBasic, Which do you prefer?
 Originally Posted by SearchingDataOnly
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|