SlideShare a Scribd company logo
1 of 18
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

What's hot

Curriculum mac book training
Curriculum mac book trainingCurriculum mac book training
Curriculum mac book training
melissaroberts281
 
Library e-Books and the Nook
Library e-Books and the NookLibrary e-Books and the Nook
Library e-Books and the Nook
monroelibrary
 
Dolly’s webpage cheat sheet
Dolly’s webpage cheat sheetDolly’s webpage cheat sheet
Dolly’s webpage cheat sheet
dolly_morris
 
Build A Better Blog
Build A Better BlogBuild A Better Blog
Build A Better Blog
swills
 

What's hot (20)

Canva: Your tool to create photos like a PRO
Canva: Your tool to create photos like a PROCanva: Your tool to create photos like a PRO
Canva: Your tool to create photos like a PRO
 
Windows
WindowsWindows
Windows
 
Wix
WixWix
Wix
 
Riann salandanan howtouse_canva
Riann salandanan howtouse_canvaRiann salandanan howtouse_canva
Riann salandanan howtouse_canva
 
Riann salandanan howtouse_dropbox
Riann salandanan howtouse_dropboxRiann salandanan howtouse_dropbox
Riann salandanan howtouse_dropbox
 
Curriculum mac book training
Curriculum mac book trainingCurriculum mac book training
Curriculum mac book training
 
GFGC CHIKKABASUR (INTERNET EXPLORER)
GFGC CHIKKABASUR (INTERNET EXPLORER)GFGC CHIKKABASUR (INTERNET EXPLORER)
GFGC CHIKKABASUR (INTERNET EXPLORER)
 
How to Use 'Tackk’
How to Use 'Tackk’How to Use 'Tackk’
How to Use 'Tackk’
 
Riann salandanan howtouse_evernote -
Riann salandanan howtouse_evernote -Riann salandanan howtouse_evernote -
Riann salandanan howtouse_evernote -
 
Wix tutorial
Wix tutorialWix tutorial
Wix tutorial
 
Library e-Books and the Nook
Library e-Books and the NookLibrary e-Books and the Nook
Library e-Books and the Nook
 
Overdrive eBook Training
Overdrive eBook TrainingOverdrive eBook Training
Overdrive eBook Training
 
Dolly’s webpage cheat sheet
Dolly’s webpage cheat sheetDolly’s webpage cheat sheet
Dolly’s webpage cheat sheet
 
Riann salandanan howtouse_buffer
Riann salandanan howtouse_bufferRiann salandanan howtouse_buffer
Riann salandanan howtouse_buffer
 
Basecamp Tutorial
Basecamp TutorialBasecamp Tutorial
Basecamp Tutorial
 
How to Use Dropbox to Backup Your Files?
How to Use Dropbox to Backup Your Files?How to Use Dropbox to Backup Your Files?
How to Use Dropbox to Backup Your Files?
 
Web development without coding
Web development without codingWeb development without coding
Web development without coding
 
Secrets of the web inspector
Secrets of the web inspectorSecrets of the web inspector
Secrets of the web inspector
 
Build A Better Blog
Build A Better BlogBuild A Better Blog
Build A Better Blog
 
How to use Basecamp
How to use BasecampHow to use Basecamp
How to use Basecamp
 

Viewers also liked

Button controls and using methods to make a simple web browser
Button controls and using methods to make a simple web browserButton controls and using methods to make a simple web browser
Button controls and using methods to make a simple web browser
Secondary School
 
Satellite communication
Satellite communicationSatellite communication
Satellite communication
karthika nadar
 
Types of internet connections
Types of internet connectionsTypes of internet connections
Types of internet connections
adrianne1114
 
Outlook Presentation
Outlook PresentationOutlook Presentation
Outlook Presentation
tamil999
 
Types of internet connections
Types of internet connectionsTypes of internet connections
Types of internet connections
yashgaba
 

Viewers also liked (13)

Button controls and using methods to make a simple web browser
Button controls and using methods to make a simple web browserButton controls and using methods to make a simple web browser
Button controls and using methods to make a simple web browser
 
Satellite communication
Satellite communicationSatellite communication
Satellite communication
 
Introduction To Outlook Express
Introduction To Outlook ExpressIntroduction To Outlook Express
Introduction To Outlook Express
 
The Magic of Mobile Broadband: Wireless Fundamentals
The Magic of Mobile Broadband: Wireless FundamentalsThe Magic of Mobile Broadband: Wireless Fundamentals
The Magic of Mobile Broadband: Wireless Fundamentals
 
Email setup for microsoft outlook
Email setup for microsoft outlookEmail setup for microsoft outlook
Email setup for microsoft outlook
 
Wireless broadband
Wireless broadband Wireless broadband
Wireless broadband
 
Methods of connecting internet
Methods of connecting internetMethods of connecting internet
Methods of connecting internet
 
Basic of MS Outlook
Basic of MS OutlookBasic of MS Outlook
Basic of MS Outlook
 
Types of internet connections
Types of internet connectionsTypes of internet connections
Types of internet connections
 
Outlook Presentation
Outlook PresentationOutlook Presentation
Outlook Presentation
 
Types of internet connections
Types of internet connectionsTypes of internet connections
Types of internet connections
 
Web browser
Web browserWeb browser
Web browser
 
Web Browsers
Web BrowsersWeb Browsers
Web Browsers
 

Similar to Extending the web browser

hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
hopTo
 
Cis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry universityCis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry university
lhkslkdh89009
 
Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7
helpido9
 
Nvu tutorial1 1
Nvu tutorial1 1Nvu tutorial1 1
Nvu tutorial1 1
RJOROZCO
 
Lesson3 Student Resource3.2
Lesson3 Student Resource3.2Lesson3 Student Resource3.2
Lesson3 Student Resource3.2
daisy
 
Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6
Krista Lawrence
 
Chapter 4 Using a Web Browser
Chapter 4 Using a Web BrowserChapter 4 Using a Web Browser
Chapter 4 Using a Web Browser
Patty Ramsey
 
Managing multiple tasks
Managing multiple tasksManaging multiple tasks
Managing multiple tasks
John Robinson
 
Computer Internet Basics I
Computer Internet Basics IComputer Internet Basics I
Computer Internet Basics I
debbie43
 
Introduction to computers 2
Introduction to computers 2Introduction to computers 2
Introduction to computers 2
Heather Lambert
 

Similar to Extending the web browser (20)

hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
 
Cis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry universityCis407 a ilab 2 web application development devry university
Cis407 a ilab 2 web application development devry university
 
Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7
 
Nvu tutorial1 1
Nvu tutorial1 1Nvu tutorial1 1
Nvu tutorial1 1
 
Ischoolwebboard 2
Ischoolwebboard 2Ischoolwebboard 2
Ischoolwebboard 2
 
Lesson3 Student Resource3.2
Lesson3 Student Resource3.2Lesson3 Student Resource3.2
Lesson3 Student Resource3.2
 
Google calendar integration in iOS app
Google calendar integration in iOS appGoogle calendar integration in iOS app
Google calendar integration in iOS app
 
Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6
 
Lesson3 Student Resource3
Lesson3  Student Resource3Lesson3  Student Resource3
Lesson3 Student Resource3
 
Chapter 4 Using a Web Browser
Chapter 4 Using a Web BrowserChapter 4 Using a Web Browser
Chapter 4 Using a Web Browser
 
Managing multiple tasks
Managing multiple tasksManaging multiple tasks
Managing multiple tasks
 
0 How To Use Internet Enhmandah
0 How To Use Internet Enhmandah0 How To Use Internet Enhmandah
0 How To Use Internet Enhmandah
 
Computer Internet Basics I
Computer Internet Basics IComputer Internet Basics I
Computer Internet Basics I
 
AcroButtonsTutorial
AcroButtonsTutorialAcroButtonsTutorial
AcroButtonsTutorial
 
AcroButtonsTutorial
AcroButtonsTutorialAcroButtonsTutorial
AcroButtonsTutorial
 
ict-shortcut keys.pptx
ict-shortcut keys.pptxict-shortcut keys.pptx
ict-shortcut keys.pptx
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdf
 
Introduction to computers 2
Introduction to computers 2Introduction to computers 2
Introduction to computers 2
 
67
6767
67
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

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

  1. Reinforcing Terminology
  2. 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!
  3. The complexity does increase with the number of controls that are added but it will greatly improve the use of the webbrowser app
  4. Should auto load google into the webbrowser app window