Here are some visual basic programming tutorials that may help you:
It's been years, so I forgot a lot. Should this:
If state <> "" Then
If state = "" Then
I honestly forget. Let me know if that works.
Thank you both. I'll give the line a try and report back...
No I'm afraid the If statement did not work. I'm trying Case Else. But I think all my Select End and Select Case's are the cause.
I'm just waking up, so really tired. I will try to look later, but it is a hard program to follow mentally. Haha
I hope someone can help. Check back again in a while.
So do I. This program is a little difficult. Thank you for your help...
Declare these under form.
Dim Mott As String 'To type in which State Motto
Dim Flower As String 'To type in which State Flower
Dim NickName As String 'To type in which State NickName
First Button code.
Private Sub btnmotto_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmotto.Click
Motto = CStr(InputBox("Enter a state: California, Indiana, Mississippi, North Dakota, and New York."))
Select Case Motto
txtinfo.Text = "California state motto is 'Eureka'."
txtinfo.Text = "Indiana state motto is 'Crossroads of America'."
txtinfo.Text = "Mississippi state motto is 'By valor and arms'."
Case "New York"
txtinfo.Text = "New York state motto is 'Ever Upward'."
Case "North Dakota"
txtinfo.Text = "North Dakota state motto is 'Liberty and union, now and forever, one and inseparable'."
txtinfo.Text = "Category is not listed."
Thank you Matt and helper. Your help was very useful. I was able to get this program operational. The misstake I seem to have made with putting nested statements in. I had to take out some of the End Selects and change my operation from <> to =.
So what is the full answer to this problem cause I am doing the same thing right now
Computer Visual Basics 2008 - This questions is from Chapter 5, #54) Write a ...
Programming (Visual Basic) - Im seem to be having trouble with this Exercise. ...
visual basic - in visual basic, notes in a program which explain what the ...
Early Child Ed. - Which one would be the best answer? Would (A) be the best ...
Programming - I need your help to write a program using visual basic 2010 for ...
COMPUTER PROGRAMMING - Could you please help me write a program using basic or ...
Programming (CSI Programming Logic and Design) - Create a program that outputs a...
Programming (CSI 150 Programming Logic and Design) - Create a program that ...
computers - an introduction to programming and visual basic 2008 page 39 ...
event driven programming - 8. Write a visual basic program that accepts basic ...