⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sampleapp_code.htm

📁 主要对学生的档案
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><!-- InstanceBegin template="/Templates/DWOLTL_contentTemplete.dwt" codeOutsideHTMLIsLocked="false" -->
<HEAD>
<!-- InstanceBeginEditable name="doctitle" -->
<TITLE>开发电子邮件应用程序示例(步骤)</TITLE>
<!-- InstanceEndEditable --><META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE type=text/css>
.text {
	FONT: 12px/16px "Arial", "Helvetica", "sans-serif"; TEXT-ALIGN: justify
}
.style4 {
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.style6 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
</STYLE>

<META content="MSHTML 5.00.3700.6699" name=GENERATOR>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
p.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
}
-->
</style>

<style type="text/css">
<!--
.style16 {font-size: 12px}
-->
</style>
<style type="text/css">
<!--
.style22 {font-family: "Courier New", Courier, mono}
-->
</style>










<style type="text/css">
<!--
.style73 {
	font-family: "Courier New";
	font-size: 11.0pt;
}
-->
</style>
<!-- InstanceEndEditable -->
<link href="frame.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY leftMargin=2 topMargin=2 marginheight="2" marginwidth="2">
<DIV align=center>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=bg height=678 
id=zz width=760>
  <TBODY>
  <TR>
    <TD align=left class=spline height=437 rowSpan=4 vAlign=top width=47>
      <DIV align=center></DIV></TD>
    <TD align=left height=40 vAlign=top width=158><B><FONT face=&#186;&#218;&#204;&#229; size=5><A 
      href="index.htm"><IMG border=0 
      height=58 src="Images/logo_jb-1.jpg" 
      width=153></A></FONT></B></TD>
    <TD align=right colSpan=2 height=40 vAlign=top width=553>
      <TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="85%">
        <TBODY>
        <TR>
          <TD>
            <DIV align=right><B><FONT size=5><SPAN class=title-1><FONT 
            color=#ff0000 size=2>ACCP4.0</FONT><FONT color=#333333 size=2> OLTL </FONT></SPAN></FONT></B></DIV></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD align=left class=title2 colSpan=3 height=25 vAlign=center>
      <DIV align=center class=title-1>
      <!-- InstanceBeginEditable name="top_Navi" -->
      <table border=0 cellpadding=0 cellspacing=0 width=98%>
        <tbody>
          <tr>
            <td height=20 width=619><div align="right"><a href="sampleapp_sendmail.htm"><img 
            src="Images/pre.gif" width=67 height=21 border="0"></a></div></td>
            <td width=6><div align=center></div></td>
            <td width=72><div align=right></div></td>
          </tr>
        </tbody>
      </table>
      <!-- InstanceEndEditable --><SPAN class=title-1><FONT 
      size=3></FONT></SPAN></DIV></TD></TR>
  <TR>
    <TD align=left colSpan=3 height=100% vAlign=top><BR>
      <!-- InstanceBeginEditable name="contents" -->
      <table align=center border=0 cellspacing=0 cols=1 height=2259 width=98%>
        <tbody>
          <tr>
            <td height=2259 valign=top><div align="center"><B><font size=3><span class=title-3-1></span></font>
</B><font size=3><span class=title-3-1><B>开发电子邮件应用程序示例(步骤)</B></span></font></div>
                <center>
                  <hr width="100%">
                  <font style="FONT-SIZE: 9pt"></font>
                  <div align=left>
                    <table width="94%" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor="#E2E2E2">
                      <tr>
                        <td height="269" align="center" valign="top">  
						  <div align="left">
						    <p class="text"><strong> 开发 SendMail 应用程序的步骤如下所示: </strong></p>
						    </div>
						  <ol>
                          <li class="text">
                            <p>设计一个如图 2.3 中所示的窗体。</p>
                          </li>
                          <li class="text">
                            <p>设置所有控件的相关属性。将所有文本框控件的 Text 属性设置为空字符串。将 lstFiles 列表框的 SelectionMode 属性设置为 MultiSimple。</p>
                          </li>
                          <li class="text">
                            <p>向该窗体添加 OpenFileDialog 控件并将其命名为 ofdAttach。将它的 Multiselect 属性设置为 True。</p>
                          </li>
                          <li class="text">
                            <p>将默认的 .cs 文件名、窗体名和类名重命名为 frmSendMail。</p>
                          </li>
                          <li class="text">                            
                            <p>使用 VS.NET IDE 的“项目”菜单中的“添加引用”选项将引用添加到 System.Web.dll 中。请注意,如果未将对此文件的引用添加到该项目中,则不能使用 System.Web.Mail 命名空间。</p>
                          </li>
                          <li class="text">
                            <p><span class="text" align="justify">此外,还需向 CDONTS 添加引用。为此,请依次选择“项目”和“添加引用”,然后单击“COM”选项卡并选择“Microsoft CDO for NTS 1.2 library”。这将向该项目中添加 cdonts.dll,这对 SMTP 程序能够正常工作十分重要。</span><span class="text">&nbsp;</span><strong class="style16"><span class="text">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></strong>&nbsp;&nbsp;</p>
                          </li>
                        </ol>                          
                          </td>
                      </tr>
                    </table>
                   <BR>
                    <table width="94%" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor="#E2E2E2">
                      <tr>
                        <td height="325" valign="top"><ol start="7">
                          <li class="text">该项目中包含以下命名空间:<BR>
                            <BR>
                            <span style="font-family:Courier New;font-size:10pt;color:blue;">using</span><span style="font-family:Courier New;font-size:10pt;"> System.Web; <BR>
                            </span><span style="font-family:Courier New;font-size:10pt;color:blue;"> using</span><span style="font-family:Courier New;font-size:10pt;"> System.Web.Mail;</span><span style="font-family:Courier New;font-size:10pt;color:blue;"> </span>                        </li>
                          </ol>                          

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -