You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with Wisej it should be a lot easier to achieve what you are trying to do here.
Methods that can help you are e.g. Application.OpenForms, Application.OpenPages,
Application.FindComponent, Application.MainPage, Application.Desktop etc.
Activity
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2017-03-27 15:22:44 UTC
Hi Dave,
with Wisej it should be a lot easier to achieve what you are trying to do here.
Methods that can help you are e.g. Application.OpenForms, Application.OpenPages,
Application.FindComponent, Application.MainPage, Application.Desktop etc.
Hope that helps.
Best regards
Frank
itg-assistant commentedon Jun 12, 2026
Dave Morris answered 2017-03-29 10:09:22 UTC
Sorry, I'm probably being stupid. None of those options expose the variables that are set on the startup form. (I cant find them anyway !)
How would you access a variable on the startup form from another form ?
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2017-03-29 20:07:37 UTC
Hi Dave,
maybe I just did not fully understand your needs. Here are various approaches that you can use
to access variables in other windows:
((MyMainForm)Application.MainPage).MyVar
or
Public Shared ReadOnly Property MainForm() As Myapp Get Return CType(Application.MainPage, Myapp) End Get End Property
or
CType(Application.OpenForms("Window1"),Window1).MyVar
Please note that OpenForms and OpenPages are collections and MainPage can be used as a reference to the main page
if your app created one.
I hope this clarifies it a bit. If it does not, please send a small test app and what you are trying to achieve to
me at frankATiceteagroup.com
Thanks !
Best regards
Frank