AdvancedHMI Software

General Category => Support Questions => Topic started by: Douglas on January 02, 2018, 08:22:15 PM

Title: Quick trend question
Post by: Douglas on January 02, 2018, 08:22:15 PM
I’ve built a program with 2 trend charts on separate forms. I want the data to log as soon as I start my program. Right now I must open both forms then from that point on it trends. But if I forget to do that it dosent trend. I’m sure it’s a simple code addition but I’m a real noob at this.
Thanks in advance
Title: Re: Quick trend question
Post by: Godra on January 02, 2018, 08:44:56 PM
You can possibly try this code (double click the MainForm to get there):

Code: [Select]
    Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Page2.Show() 'Use your 2nd form name instead
    End Sub
Title: Re: Quick trend question
Post by: Douglas on January 02, 2018, 09:42:58 PM
That did the trick. Thanks much.