LoadLineStyles example
Example for LoadLineStyles method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Command1.Text = "Save/Load LineStyles"
cAvax1.StartAvax()
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim sAVAXLinFile As String
Dim iFr As Short
Dim sTmp As String
sAVAXLinFile = My.Application.Info.DirectoryPath & "\..\AvaxLineStyle.txt"
If cAvax1.SaveLineStyles(sAVAXLinFile) = True Then
If cAvax1.LoadLineStyles(sAVAXLinFile) = True Then
iFr = FreeFile
FileOpen(iFr, sAVAXLinFile, OpenMode.Binary)
sTmp = Space(FileLen(sAVAXLinFile))
FileGet(iFr, sTmp)
FileClose(iFr)
Text1.Text = sTmp
End If
End If
End Sub