Pin to atext box in vb2/27/2023 MessageBox.Show("You are in " & strMessage & " Your pin number is " & strFirstName & strMiddleName & strLastName & strId & ". Or strLastName = "U" Or strLastName = "V" ThenĮlseIf strLastName = "W" Or strLastName = "X" Or strLastName = "Y" _ Or strLastName = "P" Or strLastName = "Q" ThenĮlseIf strLastName = "R" Or strLastName = "S" Or strLastName = "T" _ Or strLastName = "J" Or strLastName = "K" Or strLastName = "L" ThenĮlseIf strLastName = "M" Or strLastName = "N" Or strLastName = "O" _ Or strLastName = "D" Or strLastName = "E" Or strLastName = "F" ThenĮlseIf strLastName = "G" Or strLastName = "H" Or strLastName = "I" _ If strLastName = "A" Or strLastName = "B" Or strLastName = "C" _ 'Use if then elseif to determine which line message Private Sub btnProcess_Click(sender As Object, e As EventArgs)ĭim strFirstName As String = (0, 1).ToUpper()ĭim strMiddleName As String = (0, 1).ToUpper()ĭim strLastName As String = (0, 1).ToUpper() I'm just trying to figure out what it is I'm doing wrong. I get an error message: Index and length must refer to a location within the string. I thought if I put: If txtFirstName.Text = "" Then Audio responses to text found in textbox: VB 6.0. The message box is to display a message if the txtFirstName or txtMiddleName or txtLastName box is left empty. I've ran it and get the results I'm looking for, but I want to add an additional message box. After the loop completes the bound text control does not show the new value, it does not display the actual value that is in myThingList I have to BindingSource.MovePrevious() then BindingSource.MoveNext() before the text control displays the correct values, the actual values that. So please, if my program is not correctly formatted, I would be glad for some suggestions. However, I set up a loop that iterates the List of Type (myThingList) and updates each property in myThingList. I'm hoping someone may be able to help me in figuring out just what I'm doing wrong.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |