I would like the App object to change the color of an object on a web page, in each active session.
This is what I started with and have not gotten much further - aside from learning that this won’t work!
If WebSession.Available = True Then For s As Integer = 0 to SessionCount -1 App.Session(s).frmMain.mnuNavMain.IPC_ConnectionStatus.Picture = SquareGreen Next s End If
The page “frmMain” is created in the Session object. The object IPC_ConnectionStatus is a container object that has been embeddedWithin the page on Open.
mnuNavMain = New Navigator_Main mnuNavMain.EmbedWithin(Self, 0, 0, mnuNavMain.Width, mnuNavMain.Height)
I had tried code like this
Dim currPage As WebPage // Loop through the current page in all the sessions For i As Integer = 0 To App.SessionCount-1 //currPage = App.SessionAtIndex(i).CurrentPage currPage = App.SessionAtIndex(i).PageWithName("MainPage", False)
but once I got the currPage, I could not figure out how to get to the target object!
If anyone has sample code or other info to share, I would really appreciate it!