In VWG I was able to add the following code to the main form.
Public Shared ReadOnly Property MainForm() As Myapp
Return CType(VWGContext.Current.MainForm, Myapp)
I was then able to access any variable, methods, functions on the main form from any other form using
Might be obvious but is there anyway of doing this in Wisej.
maybe I just did not fully understand your needs. Here are various approaches that you can use
to access variables in other windows:
Public Shared ReadOnly Property MainForm() As Myapp Get Return CType(Application.MainPage, Myapp) End Get End Property
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
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.