Hi Everyone,
I'm having a problem trying to access a public variable within a class library.
I have a class library that I'm using as a plugin through an interface. The class library contains one form that I'm using to configure a com port.
In the class library, I'm declaring my variables as follows:
In the form's code, I can access the constants and the structure by using code like 'plugin1.Plugin_version', but don't have access to the public variable CurrentSettings.
I'm obviously going about this wrong. Could someone point me in the right direction?
Thanks
I'm having a problem trying to access a public variable within a class library.
I have a class library that I'm using as a plugin through an interface. The class library contains one form that I'm using to configure a com port.
In the class library, I'm declaring my variables as follows:
VB.NET:
Public Class Plugin1
Implements PlugInInterface.IMyPlugIn
Public Structure CommPortSettings
Dim BaudRate As Integer
Dim Port As String
Dim Handshake As System.IO.Ports.Handshake
Dim DataBits As Integer
Dim Stopbits As System.IO.Ports.StopBits
Dim Parity As System.IO.Ports.Parity
Dim Timeout As Integer
End Structure
Public Const Plugin_version As String = "1.0"
Public CurrentSettings As CommPortSettings
In the form's code, I can access the constants and the structure by using code like 'plugin1.Plugin_version', but don't have access to the public variable CurrentSettings.
I'm obviously going about this wrong. Could someone point me in the right direction?
Thanks