SlideShare uma empresa Scribd logo
1 de 18
Baixar para ler offline
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……

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 

Último (20)

How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 

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!

Notas do Editor

  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