Skip to content

Instantly share code, notes, and snippets.

@erajanraja24
Created September 17, 2016 12:39
Show Gist options
  • Save erajanraja24/98653373582ff54403882da7c54d5576 to your computer and use it in GitHub Desktop.
Save erajanraja24/98653373582ff54403882da7c54d5576 to your computer and use it in GitHub Desktop.
Drop down handling
For i = 0 To Drpdown1.Options.Length - 1
If Drpdown1.Options(i).Text = "Y2" Then
Drpdown1.selectedindex = x
For j = 0 To Drpdown2.Options.Length - 1
If Drpdown2.Options(j).Text = "X3" Then
Drpdown1.selectedindex = j
Exit for
End If
Next j
Exit For
End If
Next i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment