Author Topic: Help me with the problem with my program  (Read 3767 times)

jysm1226

  • Newbie
  • *
  • Posts: 19
    • View Profile
Help me with the problem with my program
« on: December 25, 2017, 12:41:33 AM »
Help me with the problem with my program

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Help me with the problem with my program
« Reply #1 on: December 25, 2017, 02:41:51 PM »
What you are trying to do has already been done in C# version of Modbus Alarming Sample (by using MDI Parent/Child forms) :

       http://advancedhmi.com/forum/index.php?topic=1813.0

I have also attached modified version of your project.


If the C# programming is the only one you are familiar with, then I would suggest that you spend some time to improve those skills.
That way you should be able to navigate thru existing projects.
« Last Edit: March 30, 2018, 11:20:31 PM by Godra »

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Help me with the problem with my program
« Reply #2 on: December 25, 2017, 09:33:33 PM »
If you would still like to add forms to the Panel control, that version is attached here.

jysm1226

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Help me with the problem with my program
« Reply #3 on: December 28, 2017, 08:46:31 PM »
Language is now in study and there are many problems that can not be solved. I need your help.
In your project, you write data to the listview
When the screen changes, the data will be deleted. How do I prevent it from being deleted?

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Help me with the problem with my program
« Reply #4 on: December 28, 2017, 10:04:23 PM »
Your original code was clearing controls from the Main_View panel before it would show any new form.

Attached is the modified code which hides forms and never clears the panel controls.

There is also the MainForm_Load event which initially loads the Sub_Form1 (this is optional so you can remove it).
« Last Edit: December 28, 2017, 10:19:10 PM by Godra »

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Help me with the problem with my program
« Reply #5 on: December 28, 2017, 10:38:14 PM »
Your project currently looks like the beginner's project (learning stage).

Definitely look at Phrog30's Modbus Alarming Sample project, which is rather detailed and could probably be useful to you for both learning as well as any alarming that you might need to log. It is only a matter of using correct PLC addresses to trigger alarms.
« Last Edit: March 30, 2018, 11:21:30 PM by Godra »

Alipaymax

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Help me with the problem with my program
« Reply #6 on: April 30, 2018, 03:54:52 AM »
This is a message that has been filtered. And I can bring it up to this idea.