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 PrjExe11
{
public partial class Form7_3 : Form
{
public Form7_3()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
ColorDialog clg = new ColorDialog();
if (clg.ShowDialog() == DialogResult.OK)
label1.BackColor == clg.Color;
}
}
}
错误 5 只有 assignment、call、increment、decrement 和 new 对象表达式可用作语句 I:\PrjExe11\PrjExe11\Form7_3.cs 24 17 PrjExe11
能帮我解释一下为什么不能出现颜色选择对话框吗?我做的文件保存对话框也不能出,不知道该怎么办了
追答你是怎么写的
追问上面的程序就是所有的,我同学用form7-3_load
就能实现,我改了一下,还是不行
加QQ 475936988
本回答被提问者采纳