P
peter
I am very new with VB and it has a much different syntax than the
other languages that I program in
(C/C++/Java/JavaScript/ActionScript/PHP/Perl). I have three elements
in my very simple program: rich text box (named source), an activex
component "Windows Web Browser" (named webView), and two timers (named
Timer1 and Timer2). The first timer successfully loads the web page
into webView and unenables it's self. The second timer waits a couple
seconds then it is SUPPOSSED TO display the source code contents in
the rich text box.
My code for the second timer (Timer2) is:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer2.Tick
source.Text = webView.Text
'source.Text = "Test this"
Timer2.Enabled = False
End Sub
The commented out test works fine in the rich text box, but
source.Text = webView.Text doesn't do anything. Is there a way to view
source from the "Windows Web Browser"?
P.S. I got this to work with the Beta version of Studio 2005, but it
won't let me compile the app to a stand alone state that can be used
on computers that don't have Studio 2005 installed. I am using Studio
2003 with the .NET framework 1.1 sp1 installed.
Any ideas on how to get this to work would help me out a bunch.
other languages that I program in
(C/C++/Java/JavaScript/ActionScript/PHP/Perl). I have three elements
in my very simple program: rich text box (named source), an activex
component "Windows Web Browser" (named webView), and two timers (named
Timer1 and Timer2). The first timer successfully loads the web page
into webView and unenables it's self. The second timer waits a couple
seconds then it is SUPPOSSED TO display the source code contents in
the rich text box.
My code for the second timer (Timer2) is:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer2.Tick
source.Text = webView.Text
'source.Text = "Test this"
Timer2.Enabled = False
End Sub
The commented out test works fine in the rich text box, but
source.Text = webView.Text doesn't do anything. Is there a way to view
source from the "Windows Web Browser"?
P.S. I got this to work with the Beta version of Studio 2005, but it
won't let me compile the app to a stand alone state that can be used
on computers that don't have Studio 2005 installed. I am using Studio
2003 with the .NET framework 1.1 sp1 installed.
Any ideas on how to get this to work would help me out a bunch.