How to Prevent an Empty TextBox in Visual Basic.Net

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2019
  • How to Prevent an Empty TextBox in Visual Basic.Net, using For Loop and If Statement
    To support more videos from DJ Oamen, visit POamen Paypal
    www.paypal.me/POamen
    To Become a Channel member click on the link below to JOIN:
    / @djoamen

ความคิดเห็น • 3

  • @maxtertj8775
    @maxtertj8775 ปีที่แล้ว

    Do you know the opposite of Textbox1.text = "" ?
    Or how to do this Textbox1.text = not empty ?
    Because I want the user to enter characters on the textbox.
    Example:
    If the user checked this radiobutton(Yes/No), the textbox beside it must be filled.
    Just like the question: Are you confident? If yes, Why?

    • @DJOamen
      @DJOamen  ปีที่แล้ว +1

      Textbox1.text = Not vbEmpty
      Textbox1.text = vbEmpty

    • @maxtertj8775
      @maxtertj8775 ปีที่แล้ว

      @@DJOamen Thank you, I will try this.