Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将用户输入框弹出到Outlook 2010_C#_Vsto_Outlook Addin_Outlook 2010 - Fatal编程技术网

C# 将用户输入框弹出到Outlook 2010

C# 将用户输入框弹出到Outlook 2010,c#,vsto,outlook-addin,outlook-2010,C#,Vsto,Outlook Addin,Outlook 2010,我正在构建2010年的Outlook addin。如何使用用户输入的两个文本框创建弹出对话框,然后将这些值显示在邮件正文中?请确保添加以下内容: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Tools.Ribbon; using System.Windows.Forms; namespace EmailHelper {

我正在构建2010年的Outlook addin。如何使用用户输入的两个文本框创建弹出对话框,然后将这些值显示在邮件正文中?

请确保添加以下内容:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using System.Windows.Forms;

namespace EmailHelper
{
    public partial class EmailHelperRibbon
    {
        private void EmailHelperRibbon_Load(object sender, RibbonUIEventArgs e)
        {

        }

        private void button1_Click(object sender, RibbonControlEventArgs e)
        {
            System.Windows.Forms.MessageBox.Show("Your Ribbon Works!");
            Form Form1 = new Form1();
            Form1.Show();
        }
    }
}

别担心,我已经弄明白了。这并不是在描述如何解决这个问题;无论是如何将用户输入的值添加到消息正文,还是如何创建两个文本框。