simple vb problem kicking my butt...
What I want to do is have a button become enabled when there is text in a text box on the screen and disabled when there is no text in the box. The result will be when a url is in the text box the button is clickable and the web browser takes the url and if there is no url in the text box nothing will happen sice they can't click the button.
This is the code I have been trying to play with.
If UrlTextBox.Text = Text Then Button4.Enabled = True else button4.enabled = false
but when I run the program the button is still enabled. I have even tried simular lines of code and putting the code in different declerations but nothing seems to work. This isn't difficult or at least I don't think it is. Can anyone give me any advice.
Thanks
Join our FREE Masterminds as well as enroll in our online courses! -- Mastermind and Courses