0% found this document useful (0 votes)
70 views1 page

Form1 Object Eventargs

This code handles an event when a radio button is checked that converts a time entered in a text box in seconds to minutes. It sets labels to display that the time is in minute format, multiplies the seconds entered by 60 to convert to minutes, and displays the result in a label, clearing any previous output.

Uploaded by

api-347017345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views1 page

Form1 Object Eventargs

This code handles an event when a radio button is checked that converts a time entered in a text box in seconds to minutes. It sets labels to display that the time is in minute format, multiplies the seconds entered by 60 to convert to minutes, and displays the result in a label, clearing any previous output.

Uploaded by

api-347017345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Public Class Form1

Dim hour As Single


Dim sec As Single
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles RadioButton1.CheckedChanged
Label2.Text = "The time in minute format is:"
sec = TextBox1.Text
Label3.Text = sec * 60
Label4.Text = ""
End Sub

You might also like