Microscopy Lab Exercise # 1Zoo- 145 Lab Exercise # 1Zoo- 145 INTRODUCTION.
Lab Exercise 10 WEB APPLICATION USING VB.NET
-
Upload
pabburahati -
Category
Documents
-
view
204 -
download
3
Transcript of Lab Exercise 10 WEB APPLICATION USING VB.NET
![Page 1: Lab Exercise 10 WEB APPLICATION USING VB.NET](https://reader030.fdocuments.in/reader030/viewer/2022020122/5540747b550346466d8b4acd/html5/thumbnails/1.jpg)
QUESTION 1
CODING FOR FORM:
Public Class WebForm1 Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub TextBox5_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles txtResult.TextChanged
End Sub
Protected Sub TextBox4_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles txtSpeed.TextChanged
End Sub
Protected Sub btnReset_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnReset.Click txtName.Text = "" txtDistance.Text = "" txtTime.Text = "" txtSpeed.Text = "" txtResult.Text = "" End Sub
Protected Sub btnCalculate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnCalculate.Click
Dim Distance As Double Dim Time As Double Dim speed As Double
Distance = txtDistance.Text Time = txtTime.Text speed = Val(Distance / Time) txtSpeed.Text = (" Dear " & txtName.Text & " your speed is " & speed)
Select Case speed Case Is < 60 txtResult.Text = "Slow"
Case 61 To 90 txtResult.Text = "Moderate"
Case Is > 91 txtResult.Text = "Fast" End Select
End SubEnd Class
![Page 2: Lab Exercise 10 WEB APPLICATION USING VB.NET](https://reader030.fdocuments.in/reader030/viewer/2022020122/5540747b550346466d8b4acd/html5/thumbnails/2.jpg)
INTERFACE OUTPUT: