stu nicholls dot com | menu - Professional dropdown #3

The .NET Base Class Library
Imports Statements Referencing External Libraries Public Class Class1
Public Sub display(ByVal Message As String)
MsgBox(Message)
End Sub
End Class
Public Class class2
Public Sub display(ByVal Message As String)
MsgBox(Message,MsgBoxStyle.Exclamation)
End Sub
End Class
Public Class Form1
Dim obj1 As New ClassLibrary1.Class1
Dim obj2 As New ClassLibrary1.class2
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
obj1.display("Hello")
obj2.display("Hai I am fine")
End Sub
End Class

<< Previous   Next>>


comments powered by Disqus
Footer1