mike mcintyre's

.N e t J o u r n a l

This blog hosted by:
http://blogs.vbcity.com      
  Home :: Syndication  :: Login

JulAugust 2004Sep
SMTWTFS
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

Archives

Topics

Source Code

Tuesday, August 03, 2004 #

In .Net Framework 2.0 the WebBrowser Class is located in the System.Windows.Forms namespace.

The WebBrowser control is resident in the Windows controls Toolbar panel in the VS 2005 IDE. It is no longer necessary to reference the unmanaged Microsoft Web Control as was the case in VS 2002/2003.

This new managed class provides new and improved properties, methods, and events for hosting web pages and other browser-enabled documents.  Here are some of the services the new WebBrowser members support:

  • Drag And Drop
  • Navigation
  • Streams
  • Printing
  • Shortcut Menu
  • Scripting
  • Graphics
  • Search

Of special interest to is the ability to enable communication between a web page hosted by the WebBrowser control and the application hosting the WebBrowser control. This allows an application object, external to the web page, to invoke a script in the web page.

posted @ 4:08 PM

Code example for Visual Studio 2005 May 2004 Community Preview

' // Continue Statement in Visual Basic 8.0

' For using Continue statement.

For i As Integer = 0 To 100

     ' If i = 50 skip Console.Writeline statement

     If i = 50 Then Continue For

     Console.WriteLine(i.ToString)

Next

 

' Do While using Continue statement.

Dim ii As Integer = 1

Do While ii < 100

     ii += 1

     ' If i = 50 skip Console.Writeline statement

     If ii = 50 Then Continue Do

     Console.WriteLine(ii.ToString)

Loop

 

' While using Continue statement.

Dim iii As Integer = 1

While iii < 100

     iii += 1

     ' If i = 50 skip Console.Writeline statement

     If iii = 50 Then Continue While

     Console.WriteLine(iii.ToString)

End While

posted @ 4:05 PM