Author Topic: Hydraulic Cylinder invisible in ControlTab  (Read 2591 times)

tamnguyen408

  • Newbie
  • *
  • Posts: 14
    • View Profile
Hydraulic Cylinder invisible in ControlTab
« 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,

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Hydraulic Cylinder invisible in ControlTab
« Reply #1 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

tamnguyen408

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Hydraulic Cylinder invisible in ControlTab
« Reply #2 on: July 11, 2016, 10:31:49 AM »
Thanks, Archie
I will try

tamnguyen408

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Hydraulic Cylinder invisible in ControlTab
« Reply #3 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