Home
Help
Search
Login
Register
AdvancedHMI Software
»
General Category
»
Support Questions
»
keep data subscription on main form
« previous
next »
Print
Pages: [
1
]
Author
Topic: keep data subscription on main form (Read 1263 times)
MrPike
Sr. Member
Posts: 297
keep data subscription on main form
«
on:
January 04, 2015, 03:48:23 PM »
I want to keep data subscriptions active on the main form even if not the page is not opened, what code changes do I need to do this?? Thanks
Logged
Archie
Administrator
Hero Member
Posts: 5322
Re: keep data subscription on main form
«
Reply #1 on:
January 04, 2015, 05:23:50 PM »
Remove the default code in the VisibleChanged event handler.
Logged
MrPike
Sr. Member
Posts: 297
Re: keep data subscription on main form
«
Reply #2 on:
January 04, 2015, 06:04:17 PM »
Sorry for my lack of vb knowledge. I removed the attached code from the main form and I dont get any data subscription. i also removed the last line drv.datasubscriptions.disabled= not me.visible and I also dont get any data returned. What am I missing?
Logged
Archie
Administrator
Hero Member
Posts: 5322
Re: keep data subscription on main form
«
Reply #3 on:
January 04, 2015, 06:15:56 PM »
All of that code should be deleted or commented out. Then check the properties on your driver instance to make sure DisableSubscriptions is set to False.
Logged
MrPike
Sr. Member
Posts: 297
Re: keep data subscription on main form
«
Reply #4 on:
January 04, 2015, 06:52:57 PM »
ahh,my disable subscription was set to true, it works now, thanks
Logged
Print
Pages: [
1
]
« previous
next »
AdvancedHMI Software
»
General Category
»
Support Questions
»
keep data subscription on main form