AdvancedHMI Software

General Category => Feature Request => Topic started by: tamnguyen408 on July 08, 2016, 03:57:23 PM

Title: Hydraulic Cylinder invisible in ControlTab
Post by: tamnguyen408 on July 08, 2016, 03:57:23 PM
Hi,

I tried to place Hydraulic Cylinder in Main Form which is working fine. it is disappeared in Tabcontrol.
Any idea is appreciate it
Thanks,
Title: Re: Hydraulic Cylinder invisible in ControlTab
Post by: Archie on July 08, 2016, 09:09:19 PM
This is definitely a bug. The work around is to set the cylinder visible in the Form Load event:
Code: [Select]
    Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        HydraulicCylinder1.Visible = True
    End Sub
Title: Re: Hydraulic Cylinder invisible in ControlTab
Post by: tamnguyen408 on July 11, 2016, 10:31:49 AM
Thanks, Archie
I will try
Title: Re: Hydraulic Cylinder invisible in ControlTab
Post by: tamnguyen408 on July 12, 2016, 09:57:31 AM
It worked with code below

  Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        HydraulicCylinder1.Visible = True

    End Sub

    Private Sub TabPage2_Click(sender As Object, e As EventArgs) Handles TabPage2.Click
        HydraulicCylinder1.Visible = True
    End Sub

Thanks for your help