I cant find the answer nor in the google nor in the help file & not even in the faq-s. So How I do this?
How can I make my msgbox in form1.vb output this sampletext declared in class1.vb ?
I added item class1.vb this is how it looks inside.
in my form1.vbCode:Public Class Class1 Dim sampletext As String = sampletext = "flowers" End Class
Code:Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MsgBox(sampletext) End Sub End Class





Reply With Quote