Author Topic: Hydraulic Cylinder Analogue Does not show up  (Read 1003 times)

joko markono

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Hydraulic Cylinder Analogue Does not show up
« on: December 02, 2019, 07:54:33 PM »
Hi team,

When i execute the ahmi, the feature does not show up. Sometimes it shows error as in attachment 1 and 2.
I have tried deleted it and insert it again, but same result. I notice this happen when i put this control inside the GroupPanel.
Can someone help me please.
« Last Edit: December 02, 2019, 08:44:36 PM by joko markono »

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Hydraulic Cylinder Analogue Does not show up
« Reply #1 on: December 02, 2019, 10:41:33 PM »
GroupPanel has the "AllowDrop" property which you can try setting to True to see if that fixes your issue.

joko markono

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: Hydraulic Cylinder Analogue Does not show up
« Reply #2 on: December 03, 2019, 12:35:32 AM »
it doesn't work. still give same error on positioning/location.
« Last Edit: December 03, 2019, 12:40:04 AM by joko markono »

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Hydraulic Cylinder Analogue Does not show up
« Reply #3 on: December 03, 2019, 01:30:26 AM »
Yes, it's a bug in the control itself.

It seems to work if the point is (0, 0).

There is only 1 workaround I could suggest, once you are done designing or just before you run the app, cut that line out of the designer file and paste it into the MainForm Load event, similar to this:

Code: [Select]
    Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Me.HydraulicCylinderAnalog1.Location = New System.Drawing.Point(35, 75)

    End Sub

The designer might be putting that line back whenever you make changes to the form so remember to cut it out again.
All this until Archie manages to fix that bug and post an update.
« Last Edit: December 03, 2019, 01:34:08 AM by Godra »

joko markono

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: Hydraulic Cylinder Analogue Does not show up
« Reply #4 on: December 03, 2019, 02:12:40 AM »
thanks for the info.
by the way, i think for time being i will just assign the control inside another new GroupPanel and assign the location as (0,0) and then paste the new GroupPanel inside the main GroupPanel.
seems to work fine now.
« Last Edit: August 27, 2020, 03:02:44 AM by joko markono »