· 1、使用outLook提供的发送
如:我见过的用友软件U8生产制造(演示版),其中的邮件功能就是通过调用outLook的ActiveX 组件
优点:开发简单
缺点:依赖outlook组件,SMTP 邮件服务邮件发送的代码如下:Private Sub Send()Dim outObj As New Outlook.Application()Dim Item As Outlook.MailItemClassIt...
· 数据结构与算法(C#实现)系列---广义树(一)Heavenkiller(原创)广义树和基本树的主要区别就是有任意的度using System;using System.Collections;namespace DataStructure{/// <summary>/// GeneralTree 的摘要说明。/// general tree is a tree which has a arbitrary degree and no empty tre...
· 做了一个控件,这样就可以告别图片按钮了:)效果:程序源代码:using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Drawing.Text;namespace WindowsControlL...
· [C#]
public static Process RunningInstance()
{ Process current = Process.GetCurrentProcess(); Process[] processes = Process.GetProcessesByName (current.ProcessName); //Loop through the running processes in with the same name foreach (Process process in processes) { /...
· This is an article on Constructors in C#, for the beginner level programmers. It covers simple constructors, constructors overloading, behaviour of constructors in inheritance, constructor chaining and static constructors. At the end, it contains the general FAQs about constr...
· 初学VB.Net ,总结一下ByVal和ByRef1 通过ByVal传递的变量,VB.Net会复制与源值相等的一个新的变量。而ByRef则相当于引用。
例如我们学习C的时候得Swap()函数Imports System
'Test that Can't Swap A and B
Class MyAppPublic Shared Sub Main()Dim A As Integer = 0Dim B As Integer = 1Console.w...