摘要: Microsoft Outlook has an object model that's useful for automating any of the objects that it manages. Items like calendar entries, e-mails and tasks are well designed, but sometimes they don't provid... 阅读全文
posted @ 2008-08-21 17:55 kin2321 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Introduction In this article I will give you an example of how to add an e-mail to your Microsoft Outlook outbox folder using C# and/or VB.net. This example also show how easy it is to call functio... 阅读全文
posted @ 2008-08-21 17:27 kin2321 阅读(341) 评论(0) 推荐(0) 编辑
摘要: One thing I’d like to play with is extending Outlook through add-ins with C#. It’ll be a good opportunity to learn more about .NET development and the Windows tools. Plus, I can “fix” some of the thi... 阅读全文
posted @ 2008-08-21 17:22 kin2321 阅读(369) 评论(0) 推荐(0) 编辑
摘要: c# outlook Outlook & C# How to create Outlook 2003 items in C# ? For accesing Office 2003 you'll need the Office XP primary interop assemblies (you can download them here). Once you got them ... 阅读全文
posted @ 2008-08-21 17:15 kin2321 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 引用类型是类型安全的指针,它们的内存是分配在堆(保存指针地址)上的。 String、数组、类、接口和委托都是引用类型。 强制类型转换与as类型转换的区别:当类型转换非法时,强制类型转换将抛出一个System.InvalidCastException异常, 而as不会抛出异常,它返回一个null值。 用using创建别名:using console = System.Console; 访问限定符:... 阅读全文
posted @ 2008-08-20 11:52 kin2321 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 我的方法是重写MenuItem类,在写的过程中发现用GDI+实际测量出来的文本的大小不是很准确,还有文本也不能很好对齐,固在代码里可以时常看到很多多加上去的数字.我想原理就不用我讲了吧,下面的代码注释的很 清楚了: using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.For... 阅读全文
posted @ 2008-08-20 11:40 kin2321 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Office 应用程序之间相互通信——以及自动化它们之间的交互——的一般方法是使用内建的 VBA 语言。但是开发人员应该开始注意微软编程的未来走向Visual Studio .NET,它的丰富的工具集,它的面向对象的特性,以及它的无数的框架(所谓框架是指包含一些有用对象的代码库的集合,比如加密)。 很多开发人员发现经常需要设计 Office 应用程序之间或 Office 应用程序与外部世... 阅读全文
posted @ 2008-08-20 10:27 kin2321 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 前提: 导入COM库:Microsoft word 11.0 Object Library. 引用里面就增加了: 创建新Word object oMissing = System.Reflection.Missing.Value; Word._Application oWord; Word._Document oDoc; oWord = new Word.Application(... 阅读全文
posted @ 2008-08-20 09:19 kin2321 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.打开VS.net 2003. 2.新建一个WinForm Application. 3.添加命名空间 using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; usin... 阅读全文
posted @ 2008-08-15 15:16 kin2321 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 微软的VS.Net开发工具推出已有一段时日了,其中的那门新语言C#也日渐为大家所熟悉并接受。C#作为一门新兴的语言相信具有传统语言不可比拟的优越性,特别是在网络应用方面,开发者更是感觉到了C#的强大功能。所以本文就通过运用C#来实现一个基于POP3协议的邮件接收程序来向大家展示C#网络编程的功能强大,同时也向大家介绍一下基于POP3协议的电子邮件接收原理。 首先我向大家介绍邮件接收的基本原理:... 阅读全文
posted @ 2008-08-13 15:35 kin2321 阅读(1059) 评论(1) 推荐(1) 编辑