Results 1 to 10 of 10

Thread: [2008]how to include class.vb ?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    [2008]how to include class.vb ?

    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.
    Code:
    Public Class Class1
        Dim sampletext As String = sampletext = "flowers"
    End Class
    in my form1.vb
    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
    Last edited by goldenix; Apr 6th, 2008 at 01:51 PM.

    M.V.B. 2008 Express Edition

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width