[AppleScript] 纯文本查看 复制代码 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace datetimepicker
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
fontDialog1.ShowColor = true;
if (fontDialog1.ShowDialog=System.Windows.Forms.DialogResult.OK)
{
dateTimePicker1.CalendarFont = fontDialog1.Font;
}
}
}
}
出现的问题是
错误 1 “ShowDialog”是一个“方法组”,无法为它赋值
错误2 错误 2 “datetimepicker.Form1”不包含“Form1_Load”的定义,并且找不到可接受类型为“datetimepicker.Form1”的第一个参数的扩展方法“Form1_Load”(是否缺少 using 指令或程序集引用?)
|