C#如何代码获得outlook2007确认代码中的设置信息

如何用C# 把outlook中未读的邮件设为已读
[问题点数:40分]
如何用C# 把outlook中未读的邮件设为已读
[问题点数:40分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关推荐:
2011年4月 .NET技术大版内专家分月排行榜第二
2011年3月 .NET技术大版内专家分月排行榜第三
2014年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第四
2014年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第四
2011年4月 .NET技术大版内专家分月排行榜第二
2011年3月 .NET技术大版内专家分月排行榜第三
2014年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第四
本帖子已过去太久远了,不再提供回复功能。 上传我的文档
 下载
 收藏
该文档贡献者很忙,什么也没留下。
 下载此文档
正在努力加载中...
用C#语言实现记事本(代码)
下载积分:100
内容提示:用C#语言实现记事本(代码)
文档格式:DOC|
浏览次数:471|
上传日期: 15:31:45|
文档星级:
该用户还上传了这些文档
用C#语言实现记事本(代码)
官方公共微信热门搜索:
Sponsored links
22:02&&&&来自:&&&&&&浏览次数:20&&&&&&下载次数:2这是源代码中提取电子邮件附件 Microsoft outlook。欢迎下载,试用。谢谢您的支持 !... 14:05&&&&来自:&&&&&&浏览次数:1&&&&&&下载次数:0我的代码由 vs2002,但编译错误 vs2008,所以我从不不知道如何修复它。所以我获得源代码,并且想要重新编译它。我希望正常工作。... 22:38&&&&来自:&&&&&&浏览次数:63&&&&&&下载次数:0此代码将允许您将所有在 outlook 中的邮件导出到 Pdf,它为每个消息创建一个文件夹和所有将附件保存到该文件夹和 PDF。... 13:01&&&&来自:&&&&&&浏览次数:0&&&&&&下载次数:0应用背景这是一个第三方实用程序。©2005 bertus海登赫伊斯继续这是一个简单的应用程序,我写了一个封闭的前景,它做以下:第一次运行它,它写的价值的过程中,你要杀一个注册表设置,下次它运行了延迟交战的电脑操... 10:08&&&&来自:&&&&&&浏览次数:9&&&&&&下载次数:0可以在c++中实现outlook界面和windows资源管理器的效果。-can c++ Achieve outlook interface and windows Explorer results....
热门关键词搜索
Sponsored links
23 篇源代码 21 篇源代码 18 篇源代码 13 篇源代码 9 篇源代码
285 篇源代码 173 篇源代码 48 篇源代码 42 篇源代码 36 篇源代码
登录 CodeForge
还没有CodeForge账号?
Switch to the English version?
CF仔没有找到您要的代码,请去留下您的问题吧,可能会有大神帮助你哦!
该用户暂时未开通博客
请按 Ctrl+D 键添加到收藏夹。最近在上网的时候,发现了这个C# 下的 OutlookBar 控件,看了一下感觉还真不错,特此记录一下。
using System.D
using System.Windows.F
namespace OutLookBarDemo
internal class BandTagInfo
public OutlookBar outlookB
public int
public BandTagInfo(OutlookBar ob, int index)
outlookBar=
this.index=
public class OutlookBar : Panel
private int buttonH
private int selectedB
private int selectedBandH
public int ButtonHeight
return buttonH
buttonHeight=
// do recalc layout for entire bar
public int SelectedBand
return selectedB
SelectBand(value);
public OutlookBar()
buttonHeight=25;
selectedBand=0;
selectedBandHeight=0;
public void Initialize()
//parent Panel 必须存在不能删除
//this.BorderStyle = BorderStyle.N
Parent.SizeChanged+=new EventHandler(SizeChangedEvent);
public void AddBand(string caption, ContentPanel content)
content.outlookBar=this;
int index=Controls.C
BandTagInfo bti=new BandTagInfo(this, index);
BandPanel bandPanel=new BandPanel(caption, content, bti);
Controls.Add(bandPanel);
UpdateBarInfo();
RecalcLayout(bandPanel, index);
public void SelectBand(int index)
selectedBand=
RedrawBands();
private void RedrawBands()
for (int i=0; i&Controls.C i++)
BandPanel bp=Controls[i] as BandP
RecalcLayout(bp, i);
private void UpdateBarInfo()
selectedBandHeight=ClientRectangle.Height-(Controls.Count * buttonHeight);
private void RecalcLayout(BandPanel bandPanel, int index)
int vPos=(index &= selectedBand) ? buttonHeight*index : buttonHeight*index+selectedBandH
int height=selectedBand==index ? selectedBandHeight+buttonHeight : buttonH
// the band dimensions
bandPanel.Location=new Point(0, vPos);
bandPanel.Size=new Size(ClientRectangle.Width, height);
// the contained button dimensions
bandPanel.Controls[0].Location=new Point(0, 0);
bandPanel.Controls[0].Size=new Size(ClientRectangle.Width, buttonHeight);
// the contained content panel dimensions
bandPanel.Controls[1].Location=new Point(0, buttonHeight);
bandPanel.Controls[1].Size=new Size(ClientRectangle.Width-2, height-8);
private void SizeChangedEvent(object sender, EventArgs e)
Size=new Size(Size.Width, ((Control)sender).ClientRectangle.Size.Height);
UpdateBarInfo();
RedrawBands();
internal class BandPanel : Panel
public BandPanel(string caption, ContentPanel content, BandTagInfo bti)
BandButton bandButton=new BandButton(caption, bti);
Controls.Add(bandButton);
Controls.Add(content);
internal class BandButton : Button
private BandTagI
public BandButton(string caption, BandTagInfo bti)
FlatStyle=FlatStyle.S
Visible=true;
Click+=new EventHandler(SelectBand);
private void SelectBand(object sender, EventArgs e)
bti.outlookBar.SelectBand(bti.index);
public abstract class ContentPanel : Panel
public OutlookBar outlookB
public ContentPanel()
// initial state
Visible=true;
public class IconPanel : ContentPanel
protected int iconS
protected int
public int IconSpacing
return iconS
public int Margin
public IconPanel()
margin=20;
//这里是调节图标间距的
iconSpacing = 32 + 15 + 20;
// icon height + text height + margin
BackColor=Color.LightB
AutoScroll=true;
public void AddIcon(string caption, Image image, EventHandler onClickEvent)
int index=Controls.Count/2;
// two entries per icon
PanelIcon panelIcon=new PanelIcon(this, image, index, onClickEvent);
Controls.Add(panelIcon);
Label label=new Label();
label.Text=
label.Visible=true;
label.Location = new Point(0, margin + image.Size.Height + index * iconSpacing+5);
label.Size=new Size(Size.Width, 15);
label.TextAlign=ContentAlignment.BottomC
label.Click+=onClickE
label.Tag=panelI
Controls.Add(label);
public class PanelIcon : PictureBox
public int
public IconPanel iconP
private Color bckgC
private bool mouseE
public int Index
public PanelIcon(IconPanel parent, Image image, int index, EventHandler onClickEvent)
this.index=
this.iconPanel=
Visible=true;
Location=new Point(iconPanel.outlookBar.Size.Width/2-image.Size.Width/2,
iconPanel.Margin + index*iconPanel.IconSpacing);
Size=image.S
Click+=onClickE
MouseEnter+=new EventHandler(OnMouseEnter);
MouseLeave+=new EventHandler(OnMouseLeave);
MouseMove+=new MouseEventHandler(OnMouseMove);
bckgColor=iconPanel.BackC
mouseEnter=false;
private void OnMouseMove(object sender, MouseEventArgs args)
if ( (args.X & Size.Width-2) &&
(args.Y & Size.Width-2) &&
(!mouseEnter) )
BackColor=Color.LightC
BorderStyle=BorderStyle.FixedS
Location=Location-new Size(1, 1);
mouseEnter=true;
private void OnMouseEnter(object sender, EventArgs e)
private void OnMouseLeave(object sender, EventArgs e)
if (mouseEnter)
BackColor=bckgC
BorderStyle=BorderStyle.N
Location=Location+new Size(1, 1);
mouseEnter=false;
OutlookBar 组件代码
using System.Collections.G
using ponentM
using System.D
using System.D
using System.L
using System.T
using System.Windows.F
namespace OutLookBarDemo
public partial class FrmMain : Form
public FrmMain()
InitializeComponent();
#region 初始化 OutLookBar
outlookBar.BorderStyle = BorderStyle.FixedS
outlookBar.Initialize();
IconPanel iconPanel1 = new IconPanel();
IconPanel iconPanel2 = new IconPanel();
IconPanel iconPanel3 = new IconPanel();
outlookBar.AddBand("工具条A", iconPanel1);
outlookBar.AddBand("工具条B", iconPanel2);
outlookBar.AddBand("工具条C", iconPanel3);
iconPanel1.AddIcon("信息查询", Image.FromFile(@"Image\1.ico"), new EventHandler(PanelEventA));
iconPanel1.AddIcon("购物车管理", Image.FromFile(@"Image\2.ico"), new EventHandler(PanelEventA));
iconPanel2.AddIcon("电子邮件", Image.FromFile(@"Image\3.ico"), new EventHandler(PanelEventB));
iconPanel2.AddIcon("密码管理", Image.FromFile(@"Image\4.ico"), new EventHandler(PanelEventB));
iconPanel3.AddIcon("时间设置", Image.FromFile(@"Image\4.ico"), new EventHandler(PanelEventC));
outlookBar.SelectBand(0);
#endregion
public void PanelEventA(object sender, EventArgs e)
Control ctrl = (Control)
PanelIcon panelIcon = ctrl.Tag as PanelI
string clickInfo = string.E
switch (panelIcon.Index)
clickInfo = "信息查询";
clickInfo = "购物车管理";
this.label1.Text = string.Format("您选择了 {0}", clickInfo);
public void PanelEventB(object sender, EventArgs e)
Control ctrl = (Control)
PanelIcon panelIcon = ctrl.Tag as PanelI
string clickInfo = string.E
switch (panelIcon.Index)
clickInfo = "电子邮件";
clickInfo = "密码管理";
this.label1.Text = string.Format("您选择了 {0}", clickInfo);
public void PanelEventC(object sender, EventArgs e)
Control ctrl = (Control)
PanelIcon panelIcon = ctrl.Tag as PanelI
string clickInfo = string.E
switch (panelIcon.Index)
clickInfo = "时间设置";
this.label1.Text = string.Format("您选择了 {0}", clickInfo);
&虽然 调用和获取 这块有点费劲,但是还是不错的一款组件。
阅读(...) 评论()

我要回帖

更多关于 outlook 错误代码1026 的文章

 

随机推荐