Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very New to Programming Need advice .
#6
Well the code snippet above should do what you want it to do; however, we may be having problems with our usage of the "Nothing" comparison.

Try this:
[code2=vbnet]Public Sub CheckForText() Handles KryptonTextBox1.TextChanged, KryptonTextBox2.TextChanged, KryptonTextBox3.TextChanged, KryptonTextBox4.TextChanged
'this will be called anytime the textbox's text is changed
If (KryptonTextBox1.Text.Equals("")) Then 'the user didn't type in text for this box
KryptonButton1.Visible = False 'set the button to be invisible
Return 'exit the sub since we don't need to do anything else
ElseIf (KryptonTextBox2.Text.Equals("")) Then
KryptonButton1.Visible = False
Return
ElseIf (KryptonTextBox3.Text.Equals("")) Then
KryptonButton1.Visible = False
Return
ElseIf (KryptonTextBox4.Text.Equals("")) Then
KryptonButton1.Visible = False
Return
Else
KryptonButton1.Visible = True
Return
End If
End Sub[/code2]
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Re: Very New to Programming Need advice . - by brandonio21_phpbb3_import2 - 05-04-2013, 11:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sockets Programming(Disconnecting from Server) xolara 1 9,385 04-06-2012, 01:47 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)