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

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 PROMafel Gorne
 
Riann salandanan howtouse_canva
Riann salandanan howtouse_canvaRiann salandanan howtouse_canva
Riann salandanan howtouse_canvaRiann Salandanan
 
Riann salandanan howtouse_dropbox
Riann salandanan howtouse_dropboxRiann salandanan howtouse_dropbox
Riann salandanan howtouse_dropboxRiann Salandanan
 
Curriculum mac book training
Curriculum mac book trainingCurriculum mac book training
Curriculum mac book trainingmelissaroberts281
 
Riann salandanan howtouse_evernote -
Riann salandanan howtouse_evernote -Riann salandanan howtouse_evernote -
Riann salandanan howtouse_evernote -Riann Salandanan
 
Library e-Books and the Nook
Library e-Books and the NookLibrary e-Books and the Nook
Library e-Books and the Nookmonroelibrary
 
Overdrive eBook Training
Overdrive eBook TrainingOverdrive eBook Training
Overdrive eBook Trainingjventuro
 
Dolly’s webpage cheat sheet
Dolly’s webpage cheat sheetDolly’s webpage cheat sheet
Dolly’s webpage cheat sheetdolly_morris
 
Riann salandanan howtouse_buffer
Riann salandanan howtouse_bufferRiann salandanan howtouse_buffer
Riann salandanan howtouse_bufferRiann Salandanan
 
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?mikelmindsetmaster
 
Secrets of the web inspector
Secrets of the web inspectorSecrets of the web inspector
Secrets of the web inspectorCarly Ho
 
Build A Better Blog
Build A Better BlogBuild A Better Blog
Build A Better Blogswills
 

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 browserSecondary School
 
Satellite communication
Satellite communicationSatellite communication
Satellite communicationkarthika nadar
 
Introduction To Outlook Express
Introduction To Outlook ExpressIntroduction To Outlook Express
Introduction To Outlook Expressputer_geeket
 
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 FundamentalsQualcomm Research
 
Email setup for microsoft outlook
Email setup for microsoft outlookEmail setup for microsoft outlook
Email setup for microsoft outlookDale Carter
 
Methods of connecting internet
Methods of connecting internetMethods of connecting internet
Methods of connecting internetTittu Anna
 
Types of internet connections
Types of internet connectionsTypes of internet connections
Types of internet connectionsadrianne1114
 
Outlook Presentation
Outlook PresentationOutlook Presentation
Outlook Presentationtamil999
 
Types of internet connections
Types of internet connectionsTypes of internet connections
Types of internet connectionsyashgaba
 

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 DrivehopTo
 
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 universitylhkslkdh89009
 
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 7helpido9
 
Nvu tutorial1 1
Nvu tutorial1 1Nvu tutorial1 1
Nvu tutorial1 1RJOROZCO
 
Lesson3 Student Resource3.2
Lesson3 Student Resource3.2Lesson3 Student Resource3.2
Lesson3 Student Resource3.2daisy
 
Google calendar integration in iOS app
Google calendar integration in iOS appGoogle calendar integration in iOS app
Google calendar integration in iOS appKetan Raval
 
Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6Unit f adobe dreamweaver cs6
Unit f adobe dreamweaver cs6Krista Lawrence
 
Chapter 4 Using a Web Browser
Chapter 4 Using a Web BrowserChapter 4 Using a Web Browser
Chapter 4 Using a Web BrowserPatty Ramsey
 
Managing multiple tasks
Managing multiple tasksManaging multiple tasks
Managing multiple tasksJohn Robinson
 
0 How To Use Internet Enhmandah
0 How To Use Internet Enhmandah0 How To Use Internet Enhmandah
0 How To Use Internet EnhmandahBayarmaa GBayarmaa
 
Computer Internet Basics I
Computer Internet Basics IComputer Internet Basics I
Computer Internet Basics Idebbie43
 
ict-shortcut keys.pptx
ict-shortcut keys.pptxict-shortcut keys.pptx
ict-shortcut keys.pptxrhea bejasa
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfsheenmarie0212
 
Introduction to computers 2
Introduction to computers 2Introduction to computers 2
Introduction to computers 2Heather 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

H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 

Recently uploaded (20)

H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 

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