Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the solution to question #23E in chapter 10 of the text book Microsoft Visual Basic 2015 Reloaded (sixth edition). The following is the

What is the solution to question #23E in chapter 10 of the text book Microsoft Visual Basic 2015 Reloaded (sixth edition). The following is the code that is suppplied and a picture of the mainform.

' Project name: Date Project ' Project purpose: Verifies a date's format and changes the year number from "yy" to "20yy" ' Created/revised by: on

Option Explicit On Option Strict On Option Infer Off

Public Class MainForm Private Sub exitButton_Click(sender As Object, e As EventArgs) Handles exitButton.Click Me.Close() End Sub

Private Sub dateTextBox_Enter(sender As Object, e As EventArgs) Handles dateTextBox.Enter dateTextBox.SelectAll() End Sub

Private Sub dateTextBox_KeyPress(sender As Object, e As KeyPressEventArgs) Handles dateTextBox.KeyPress ' allows only numbers, the slash, and the Backspace key

If (e.KeyChar "9") AndAlso e.KeyChar "/" AndAlso e.KeyChar ControlChars.Back Then e.Handled = True End If End Sub End Class

image text in transcribed

Date Date (mm/dd/yy): Date (mm/dd/yyyy): Display Date Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions