AdvancedHMI Software

General Category => Feature Request => Topic started by: jysm1226 on December 25, 2017, 12:41:33 AM

Title: Help me with the problem with my program
Post by: jysm1226 on December 25, 2017, 12:41:33 AM
Help me with the problem with my program
Title: Re: Help me with the problem with my program
Post by: Godra 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.
Title: Re: Help me with the problem with my program
Post by: Godra 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.
Title: Re: Help me with the problem with my program
Post by: jysm1226 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?
Title: Re: Help me with the problem with my program
Post by: Godra 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).
Title: Re: Help me with the problem with my program
Post by: Godra 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.
Title: Re: Help me with the problem with my program
Post by: Alipaymax 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.