Author Topic: keep data subscription on main form  (Read 1263 times)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
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 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
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.

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
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.

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
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