this can be a solution
vb Code:
private str as string = "abc" 'at least two characters in the string private counter as integer = 0 private sub form_load(Sender as object, e as eventArgs) handles Form1.Load Sound(str.Chars(counter)) counter += 1 end sub private textBox1.keyPress(Sender as object, e as ByVal e As System.Windows.Forms.KeyPressEventArgs) handles TextBox1.KeyPress sound(str.Cahrs(counter)) counter += 1 if counter = str.length then messageBox.Show("Something") ens if end sub




Reply With Quote