J
Jeffrey Spoon
Hello I have two forms which have components on them. On Screen1 I have
a component which I want to update from Screen2. However, if I simply
call the component from Screen2 it can't find it. If I create a new
instance of Screen1 in Screen2 and then call the component using a
reference, this works, but I end up with 2 Screen1's and the original
screen is not updated since I am only updating the new instance of
Screen1. How do I make the component available to Screen2? I changed the
components access property to Public but this didn't seem to make any
difference. Or can I stop the initial form from loading?
I tried to add a Main module:
Module Startup
Public scr1 As Screen1
Public scr2 As Screen2
Sub Main()
scr1 = New Screen1
scr2 = New Screen2
scr1.Activate()
scr1.Show()
End Sub
End Module
But this just partially loads the form then bombs out with no errors or
anything.
Cheers
a component which I want to update from Screen2. However, if I simply
call the component from Screen2 it can't find it. If I create a new
instance of Screen1 in Screen2 and then call the component using a
reference, this works, but I end up with 2 Screen1's and the original
screen is not updated since I am only updating the new instance of
Screen1. How do I make the component available to Screen2? I changed the
components access property to Public but this didn't seem to make any
difference. Or can I stop the initial form from loading?
I tried to add a Main module:
Module Startup
Public scr1 As Screen1
Public scr2 As Screen2
Sub Main()
scr1 = New Screen1
scr2 = New Screen2
scr1.Activate()
scr1.Show()
End Sub
End Module
But this just partially loads the form then bombs out with no errors or
anything.
Cheers