Lesson 3 – Extending the Browser

            Computing
Quick Recap
• We primarily make Windows Form Apps
• Methods make things happen ( eg browse
  website)
• Controls can be objects such as buttons in an
  app
• Events are things that happen (eg click button)
• Properties are attributes that can be changed
  (eg size, name, title)
Objective
To extend the use of the WebBrowser method
by adding additional controls
Let’s get started with our routine!
• Open Visual Studio
• Open your word doc – “VB Instructions.doc”
• V Studio > Tools > Options> Projects and
  Solutions
  – Copy and paste your network programs folder into
    ALL 3 BOXES!!!
  – Click ok
• File > Open > WebBrowser> Webbrowser.proj
It should look like…
Win Form App – Web Browser

‘Title’ Property




 This button will invoke a
method to load a web page
    from the internet!



 ‘TextBox.Text’ Property
  will be the address of
       our web page
Let’s look at how we can customise it
• Properties
  – The form itself (background colour, size, title)
  – The text box / address bar
  – Buttons… lots of buttons!
Setting a start page using Properties

1. Click on the WebBrowser
   section of the app (it will most
   likely have a white background)
2. Scroll down to the URL property
3. Type in google.com
4. Save your work
5. Run the app using the
   ‘run/debug button’ (looks like
   )
6. What happens?
Let’s add some controlling buttons
       with the following properties
Button 1             Button 2
   Name:   BackBtn      Name:   RefreshBtn
   Text:   Back         Text:   Refresh
   Size:   40, 40       Size:   40, 40

Button 3             Button 4
   Name:   StopBtn      Name:   ForwardBtn
   Text:   Stop         Text:   Forward
   Size:   40, 40       Size:   40, 40
Double click on the Back Button
Add the following code within the BackBtn_Click
section:

WebBrowser1.GoBack()
Double click on the Refresh Button
Add the following code within the
RefreshBtn_Click section:

WebBrowser1.Refresh()
Double click on the Stop Button
Add the following code within the StopBtn_Click
section:

WebBrowser1.Stop()
Double click on the Forward Button
Add the following code within the
ForwardBtn_Click section:

WebBrowser1.GoForward()
Let’s do some tidying up!
For each button or control,
you can tell them where to
stick to follow the window if
you resize it.

Click on the WebBrowser
control (the white bit)

Scroll to the ‘Anchor’ property
and type in:
   Top, Bottom, Left, Right

See what happens!
Now for the buttons
Set the following properties for each of your
buttons and address bar / text box:
            CONTROL             ANCHOR PROPERTY VALUE
         Forward Button                Top, Left
           Back Button                 Top, Left
           Stop Button                 Top, Left
         Refresh Button                Top, Left
    Show / Go / Browse Button         Top, Right
      Address bar / Text Box        Top, Left, Right
Extension
What about using graphics / icons for the
buttons instead of text?

Try looking online for stop / go / forward / back
icons and investigate the properties list for
something that might let you choose a graphic
or image instead of using the ‘Text’ property
Summary
• Use a combination of methods, controls and
  properties to make applications
• We have made a simple web browser out of a
  blank Windows Form App
• It’s just the start, it gets even better!
NEXT LESSON

Variables……

More Related Content

PPTX
MAILCHIMP: A tool for Newbies and Expert Email Marketers
PDF
TRELLO: A Powerful Engine for Project Management
PDF
EVERNOTE: Collect it all in ONE PLACE
PDF
Wordpress: Make Your Site Impressively Beautiful
PDF
Gmail for power users
PPT
Setting up a less paper law office
PDF
How to Create a Blog Using Wordpress
PPTX
Preparing+for+e books+genericdevice
MAILCHIMP: A tool for Newbies and Expert Email Marketers
TRELLO: A Powerful Engine for Project Management
EVERNOTE: Collect it all in ONE PLACE
Wordpress: Make Your Site Impressively Beautiful
Gmail for power users
Setting up a less paper law office
How to Create a Blog Using Wordpress
Preparing+for+e books+genericdevice

What's hot (20)

PPTX
Canva: Your tool to create photos like a PRO
PPT
PPT
PDF
Riann salandanan howtouse_canva
PDF
Riann salandanan howtouse_dropbox
KEY
Curriculum mac book training
PPTX
GFGC CHIKKABASUR (INTERNET EXPLORER)
PPTX
How to Use 'Tackk’
PDF
Riann salandanan howtouse_evernote -
PPTX
Wix tutorial
PPT
Library e-Books and the Nook
PPSX
Overdrive eBook Training
DOCX
Dolly’s webpage cheat sheet
PDF
Riann salandanan howtouse_buffer
PPT
Basecamp Tutorial
PDF
How to Use Dropbox to Backup Your Files?
PPTX
Web development without coding
PDF
Secrets of the web inspector
PPTX
Build A Better Blog
PPTX
How to use Basecamp
Canva: Your tool to create photos like a PRO
Riann salandanan howtouse_canva
Riann salandanan howtouse_dropbox
Curriculum mac book training
GFGC CHIKKABASUR (INTERNET EXPLORER)
How to Use 'Tackk’
Riann salandanan howtouse_evernote -
Wix tutorial
Library e-Books and the Nook
Overdrive eBook Training
Dolly’s webpage cheat sheet
Riann salandanan howtouse_buffer
Basecamp Tutorial
How to Use Dropbox to Backup Your Files?
Web development without coding
Secrets of the web inspector
Build A Better Blog
How to use Basecamp
Ad

Viewers also liked (13)

PPTX
Button controls and using methods to make a simple web browser
DOCX
Satellite communication
PPT
Introduction To Outlook Express
PDF
The Magic of Mobile Broadband: Wireless Fundamentals
PPT
Email setup for microsoft outlook
ODP
Wireless broadband
PPTX
Methods of connecting internet
PPTX
Basic of MS Outlook
PPTX
Types of internet connections
PPT
Outlook Presentation
PPTX
Types of internet connections
PPT
Web browser
PPTX
Web Browsers
Button controls and using methods to make a simple web browser
Satellite communication
Introduction To Outlook Express
The Magic of Mobile Broadband: Wireless Fundamentals
Email setup for microsoft outlook
Wireless broadband
Methods of connecting internet
Basic of MS Outlook
Types of internet connections
Outlook Presentation
Types of internet connections
Web browser
Web Browsers
Ad

Similar to Extending the web browser (20)

PDF
hopTo Work Step by Step Test Drive
DOC
Cis407 a ilab 2 web application development devry university
DOCX
Cis 407 i lab 2 of 7
PPT
Nvu tutorial1 1
PPT
Ischoolwebboard 2
DOC
Lesson3 Student Resource3.2
PPT
Google calendar integration in iOS app
PPTX
Unit f adobe dreamweaver cs6
DOC
Lesson3 Student Resource3
PPT
Chapter 4 Using a Web Browser
PPTX
Managing multiple tasks
PPT
0 How To Use Internet Enhmandah
PPT
Computer Internet Basics I
PDF
AcroButtonsTutorial
PDF
AcroButtonsTutorial
PPTX
ict-shortcut keys.pptx
PDF
Visual Basic IDE Introduction
PDF
Visual Basic IDE Intro.pdf
PPTX
Introduction to computers 2
hopTo Work Step by Step Test Drive
Cis407 a ilab 2 web application development devry university
Cis 407 i lab 2 of 7
Nvu tutorial1 1
Ischoolwebboard 2
Lesson3 Student Resource3.2
Google calendar integration in iOS app
Unit f adobe dreamweaver cs6
Lesson3 Student Resource3
Chapter 4 Using a Web Browser
Managing multiple tasks
0 How To Use Internet Enhmandah
Computer Internet Basics I
AcroButtonsTutorial
AcroButtonsTutorial
ict-shortcut keys.pptx
Visual Basic IDE Introduction
Visual Basic IDE Intro.pdf
Introduction to computers 2

Recently uploaded (20)

PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
The various Industrial Revolutions .pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
STKI Israel Market Study 2025 version august
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPTX
TEXTILE technology diploma scope and career opportunities
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPT
Module 1.ppt Iot fundamentals and Architecture
PPT
What is a Computer? Input Devices /output devices
PPTX
Configure Apache Mutual Authentication
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPT
Geologic Time for studying geology for geologist
PPTX
Microsoft Excel 365/2024 Beginner's training
A contest of sentiment analysis: k-nearest neighbor versus neural network
The various Industrial Revolutions .pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Statistics on Ai - sourced from AIPRM.pdf
Credit Without Borders: AI and Financial Inclusion in Bangladesh
Convolutional neural network based encoder-decoder for efficient real-time ob...
STKI Israel Market Study 2025 version august
Developing a website for English-speaking practice to English as a foreign la...
Training Program for knowledge in solar cell and solar industry
sustainability-14-14877-v2.pddhzftheheeeee
TEXTILE technology diploma scope and career opportunities
Final SEM Unit 1 for mit wpu at pune .pptx
Flame analysis and combustion estimation using large language and vision assi...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Module 1.ppt Iot fundamentals and Architecture
What is a Computer? Input Devices /output devices
Configure Apache Mutual Authentication
Custom Battery Pack Design Considerations for Performance and Safety
Geologic Time for studying geology for geologist
Microsoft Excel 365/2024 Beginner's training

Extending the web browser

  • 1. Lesson 3 – Extending the Browser Computing
  • 2. Quick Recap • We primarily make Windows Form Apps • Methods make things happen ( eg browse website) • Controls can be objects such as buttons in an app • Events are things that happen (eg click button) • Properties are attributes that can be changed (eg size, name, title)
  • 3. Objective To extend the use of the WebBrowser method by adding additional controls
  • 4. Let’s get started with our routine! • Open Visual Studio • Open your word doc – “VB Instructions.doc” • V Studio > Tools > Options> Projects and Solutions – Copy and paste your network programs folder into ALL 3 BOXES!!! – Click ok • File > Open > WebBrowser> Webbrowser.proj
  • 5. It should look like…
  • 6. Win Form App – Web Browser ‘Title’ Property This button will invoke a method to load a web page from the internet! ‘TextBox.Text’ Property will be the address of our web page
  • 7. Let’s look at how we can customise it • Properties – The form itself (background colour, size, title) – The text box / address bar – Buttons… lots of buttons!
  • 8. Setting a start page using Properties 1. Click on the WebBrowser section of the app (it will most likely have a white background) 2. Scroll down to the URL property 3. Type in google.com 4. Save your work 5. Run the app using the ‘run/debug button’ (looks like ) 6. What happens?
  • 9. Let’s add some controlling buttons with the following properties Button 1 Button 2 Name: BackBtn Name: RefreshBtn Text: Back Text: Refresh Size: 40, 40 Size: 40, 40 Button 3 Button 4 Name: StopBtn Name: ForwardBtn Text: Stop Text: Forward Size: 40, 40 Size: 40, 40
  • 10. Double click on the Back Button Add the following code within the BackBtn_Click section: WebBrowser1.GoBack()
  • 11. Double click on the Refresh Button Add the following code within the RefreshBtn_Click section: WebBrowser1.Refresh()
  • 12. Double click on the Stop Button Add the following code within the StopBtn_Click section: WebBrowser1.Stop()
  • 13. Double click on the Forward Button Add the following code within the ForwardBtn_Click section: WebBrowser1.GoForward()
  • 14. Let’s do some tidying up! For each button or control, you can tell them where to stick to follow the window if you resize it. Click on the WebBrowser control (the white bit) Scroll to the ‘Anchor’ property and type in: Top, Bottom, Left, Right See what happens!
  • 15. Now for the buttons Set the following properties for each of your buttons and address bar / text box: CONTROL ANCHOR PROPERTY VALUE Forward Button Top, Left Back Button Top, Left Stop Button Top, Left Refresh Button Top, Left Show / Go / Browse Button Top, Right Address bar / Text Box Top, Left, Right
  • 16. Extension What about using graphics / icons for the buttons instead of text? Try looking online for stop / go / forward / back icons and investigate the properties list for something that might let you choose a graphic or image instead of using the ‘Text’ property
  • 17. Summary • Use a combination of methods, controls and properties to make applications • We have made a simple web browser out of a blank Windows Form App • It’s just the start, it gets even better!

Editor's Notes

  • #3: Reinforcing Terminology
  • #7: This is what we are going to build in the next example that uses methods and properties/controls to create a basic Windows Form Application to browse and view web pages.Follow the instructions over the next few slides to build your first web browser!
  • #8: The complexity does increase with the number of controls that are added but it will greatly improve the use of the webbrowser app
  • #9: Should auto load google into the webbrowser app window