Write a vb program to print the dayof the week taking number 1to7as input using select ….case statement?.?

gray daynumber because string=textbox1.text

choose case daynumber
circumstance 1
label1.text=”Sunday”
circumstance 2
label1.text=”Monday”
…..
circumstance else
label1.text=”Data from range”
conclude select

place in the button click on event.Always check your own input because isnumeric and also 7 as well as less.you can use a rangevalidator or maybe regularexpression by way of example.

Leave a Reply