就是我整了个dnf的登陆器   帐号密码大区  这三一依次排在一快 然后就是登陆 我怎么才能让他 输入完帐号密码和大区后在点登陆 不输入的时候点登陆  不好使 高手说的详细点 本人是菜鸟 没事研究一下,。

解决方案 »

  1.   

    textbox的changed事件判断 帐号密码大区 都输了 登陆.enabled=true,   否则false
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
      

  2.   

    'str1:用户名
    'str2:密码
    'str3:大区if len(str1)>0 and len(str2)>0 and len(str3)>0 then
        btnlogin.enabled=true 'btnlogin为登录按钮的名称
    else
        btnlogin.enabled=false
    endif
      

  3.   


    放到timer事件里时时做检测
      

  4.   

    一个TextBox数组
    Txt(0):用户名
    Txt(1):密码
    Txt(2):大区
    cmdDN:登录Private Sub Txt_change(Index As Integer)
         if trim(txt(0)) <> "" and trim(txt(1)) <> "" and trim(txt(1)) <> "" then
              cmdDN.Enabled = true
         else
             cmdDN.Enabled = false
         endif
    end sub
      

  5.   

        if trim(txt(0)) <> "" and trim(txt(1)) <> "" and trim(txt(1)) <> "" then 
              cmdDN.Enabled = true 
        else 
            cmdDN.Enabled = false 
        endif