Home
Help
Search
Login
Register
AdvancedHMI Software
»
General Category
»
Support Questions
»
DO I have to add Ethernet driver for each new form?
« previous
next »
Print
Pages: [
1
]
Author
Topic: DO I have to add Ethernet driver for each new form? (Read 1683 times)
bachphi
Hero Member
Posts: 671
DO I have to add Ethernet driver for each new form?
«
on:
August 14, 2015, 09:52:23 AM »
For each new form that I created, it seemed like I have to add E-net driver for it to work. Do I have to really do this?
Logged
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================
Archie
Administrator
Hero Member
Posts: 5322
Re: DO I have to add Ethernet driver for each new form?
«
Reply #1 on:
August 14, 2015, 10:25:52 AM »
Yes. Each form has to have it's own driver instance. The controls connect to the driver through the ComComponent property. In the designer, this property can only point to an control on the form in which the control exists.
Logged
bachphi
Hero Member
Posts: 671
Re: DO I have to add Ethernet driver for each new form?
«
Reply #2 on:
August 14, 2015, 10:43:38 AM »
Thanks, Archie. If thats the case , TabControl is the better way to go, IMHO.
Logged
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================
Archie
Administrator
Hero Member
Posts: 5322
Re: DO I have to add Ethernet driver for each new form?
«
Reply #3 on:
August 14, 2015, 11:06:41 AM »
The downside of a tab control with a single driver instance is that all controls will be refreshed all the time even when hidden. This will give excess PLC communications and potentially slow the refresh rate.
In the code behind the default MainForm is a code snippet that pauses communications of a form when it is hidden and starts when it becomes visible. This is only possible because the separate driver instances can be paused independently.
There are really more advantages to doing a quick copy and paste of the driver instance onto each form.
Logged
Print
Pages: [
1
]
« previous
next »
AdvancedHMI Software
»
General Category
»
Support Questions
»
DO I have to add Ethernet driver for each new form?