dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: help in my program textbox = no input

  1. #1
    Join Date
    Feb 2010
    Posts
    16

    help in my program textbox = no input

    hi, i have created a program but don't know what to do. The condition is when text1.text = empty or it has no value then there would be a msgbox popping out. and for the else, there would be no msgbox popping out.

    i really don't know what's the code, like sort of this

    If text1.text = no value Then
    msgbox ("please input value")
    else
    end if

    can you correct this please?thanks..

  2. #2
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: help in my program textbox = no input

    Code:
    If Text1.Text ="" Then
      MsgBox "Please enter value"
    Else
      ...
    End If
    "" is the "empty string" meaning no "characters"

  3. #3
    Join Date
    Feb 2010
    Posts
    16

    Re: help in my program textbox = no input

    thanks.. solved!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)