Module Programming:
Module add
Public Function addn(ByVal a As Integer, ByVal b As Integer)
Return a + b
End Function
End Module
Button Coding:
Public Class Form1Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox3.Text = addn(TextBox1.Text, TextBox2.Text)
End Sub
End Class
No comments:
Post a Comment