Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15549

Text from dll

$
0
0
Hi all.

It is possible, to read text (label text maybe) from dll.

So i have a Main program, what is read "texts" from .dll.

I tryed so:

dll file:
Code:

Public Class dll_text

    Public x_user As New String = "test name 1"
    Public x2_user As New String = "test name 2"

End Class

Main program
Code:

Imports dll_text

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Label1.Text = Label1.Text = dll_text.x_user          /*but it cant call to string, and dont work


    End Sub
End Class

Thx for the help

Viewing all articles
Browse latest Browse all 15549

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>