VB 6 can host web pages, which means it can also host Silverlight apps.
Communication from VB 6 to Silverlight can easily be done via URLs. But is there a way for the Silverlight app to send messages back to VB 6?
VB 6 can host web pages, which means it can also host Silverlight apps.
Communication from VB 6 to Silverlight can easily be done via URLs. But is there a way for the Silverlight app to send messages back to VB 6?
You could add a Winsock
control to the vb app and get silverlight to talk back to it using WebClient
?
Ok how about this then.. Within the SilverLight app use the HtmlPage
class to update the title of the page this can be monitored from the WebBrowser_TitleChange
event in vb.
Silverlight code :-
var document = HtmlPage.Document;
document.SetProperty("title","whatever you need");
VB6 code :-
Private Sub WebBrowser_TitleChange(ByVal Text As String)
Debug.Print "Title changed to : " & Text
End Sub
You'd have to ignore the initial TitleChange event when the page loads.