finding the best ones is difficult
For example:
code from the following page:
http://www.startvbdotnet.com/forms/default.aspx
'===================
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'===================
The above note clearly states that this is *required* (amongst a few other
required portions of code according to this article), and yet, my primitive
code...
'=================
Public Class frmQuoteCalcs
Private Sub btnCalcLabor_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnCalcLabor.Click
Dim blDispMessage As Boolean
Dim stMessage As String
blDispMessage = False
stMessage = "Please provide all required data"
If Me.txtQty.Text = "" Or _
Me.txtLaborRate.Text = "" Or _
Me.txtMinEach.Text = "" Or _
Me.txtSetupHours.Text = "" Or _
Me.txtSetups.Text = "" Then
blDispMessage = True
End If
If blDispMessage Then
MsgBox(stMessage)
Else
Me.txtCostEach.Text = FormatCurrency(pfGetLaborRate(), 2)
End If
End Sub
Private Function pfGetLaborRate() As Double
pfGetLaborRate = _
((Me.txtSetupHours.Text * Me.txtLaborRate.Text / (Me.txtQty.Text /
Me.txtSetups.Text)) + (Me.txtMinEach.Text * Me.txtLaborRate.Text / 60))
End Function
End Class
'=================
.... has none of these *required* items, and works fine.
On the website, I cannot tell what IDE is being used for this, but surely
there cannot be that much difference between VBExpress 08 and <some other
IDE>?
So I now have to assume that this website of full of you know what, because
apparently none of this so called *required* code seems to be *required*.
Maybe very highly recommended, but quite apparently not required. Unless my
VBE stores this required boilerplate code somewhere else out of my view?
--
Jack Leach
www.tristatemachine.com
"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)