❗ vb08 disable a textbox>> yes or no <<

Posts 1–6 of 6 · Page 1 of 1
❗ vb08 disable a textbox>> yes or no <<
hello all i am making by autotalker better now i wanna make a choise option with 2 radiobuttons like:

radiobutten1: use 1 textbox
radiobutten2: use 2 textboxes

i got a form that has a interval in seconds some labels and 1 timer 2 buttens and 2 textboxes

now i try to find the code to disable a textbox googled like a hour but couldnt find anything can some1 help me ?

here is my coding:

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        SendKeys.Send(TextBox1.Text)
        SendKeys.Send("{enter}")
        SendKeys.Send("{enter}")

        SendKeys.Send(TextBox2.Text)
        SendKeys.Send("{enter}")
        SendKeys.Send("{enter}")
    End Sub"



Timer1.Interval = NumericUpDown1.Value * 1000


please help me !
easiest would be to add a different time for textbox 2 and just disable/enable the timer.
Quote Originally Posted by Micheltjuh View Post
easiest would be to add a different time for textbox 2 and just disable/enable the timer.
tryd it but then the timer always starts so it keeps typing
Hide them?


Textbox1.Hide()


or something?
Quote Originally Posted by K4GE View Post
Hide them?


Textbox1.Hide()


or something?
mm good idea i will try
doesnt works in presses enter when you click textbox it got a error =(
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us