使用 Visual Basic 自动登录表单

2024-01-24

我需要使用 Visual Basic 10.0 创建一个自动登录表单应用程序,代码如下:

</script>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
        <table cellpadding="0" cellspacing="0" border="0" height="100%">
            <tr>
                <td rowspan="10" width="50%" height="100%" background="images/bg1222.jpg" style="background-position:right top; background-repeat:repeat-y"></td>
                <td rowspan="10" width="1" bgcolor="#000000"></td>
                <td valign="top">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td width=100%>
                                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="778" height="153">
                                    <param name="movie" value="images/hed2.swf">
                                    <param name="quality" value="high">
                                    <embed src="images/hed2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="778" height="153"></embed>
                                </object>
                            </td>
                        </tr>
                    </table>
                </td>
                <!--<td rowspan="10" width="0" bgcolor="#000000"></td>-->
                <td rowspan="10" width="50%" height="100%" background="images/bg1223.jpg" style="background-position:left top; background-repeat:repeat-y"></td>
            </tr>
            <tr>
                <td width="780" height="30" align="center" valign="bottom" background="images/footer.gif"></td>
            </tr>
            <tr>
                <td height="583" valign="top" style="background-repeat:repeat-y;" >
                <br><br><br><br><br><br><br>
              <center>
                    <form action="/cse/login/login1_check.jsp" name="first" method="post">
                        <table width="25%" height="90" border="0" class='formtable1'>
                            <caption align="top">
                              <strong> User Login </strong>
                              <br>
                            </caption>
                            <tr>
                            </tr>
                            <tr>
                                <td width="24%" height="32">
                                    <div align="right"> User ID: </div>
                                </td>
                                <td width="76%">
                                    <label>
                                        <input name="uid" type="text" >
                                    </label>
                                </td>
                            </tr>
                            <tr>
                                <td height="43">
                                    <div align="right"> Password: </div>
                                </td>
                                <td>
                                    <label>
                                        <input name="password" type="password" >
                                    </label>
                                </td>
                            </tr>
                        </table>
                        <input type="submit" name="sub" value="Login">
                    </form>
                 </center>`enter code here`

假设用户名是user密码是pass.

它应该自动填写并单击提交按钮。 Visual Basic 10.0 的代码是什么?


尝试这个:

If Not String.IsNullOrEmpty(My.Settings.Username) And Not String.IsNullOrEmpty(My.Settings.Password) Then
        TxtUsername.Text = My.Settings.Username
        TxtPassword.Text = My.Settings.Password
End If
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用 Visual Basic 自动登录表单 的相关文章

随机推荐