[C#] 纯文本查看 复制代码 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)
{
}
private void Form1_Load(object sender, EventArgs e)
{
fontDialog1.ShowColor = true;
if (fontDialog1.ShowDialog = System.Windows.Forms.DialogResult.o
{
dateTimePicker1.CalendarFont = fontDialog1.Font;
}
}
}
}
运行了哈 结果出现了错误 1 “System.Windows.Forms.DialogResult”并不包含“ok”的定义 的·错误 ,我该怎么修改啊
|