kindeditor4.1.11版本 编辑器放在移动端网页访问默认为HTML编辑

展开阅读全文

文本编辑器认为黄色 求解

03-27

新手学习c#,为什么我的文本编辑器默认会是黄色呢?要怎么解决让它刚开始运行的时候不选定上面的radiobutton呢?rn[img=http://img.my.csdn.net/uploads/201303/27/1364362742_2598.png][/img]rn[img=http://img.my.csdn.net/uploads/201303/27/1364363135_4070.png][/img]rn还有就是这个复制剪切感觉不怎么好,鼠标选择文字后必须点击radiobutton或者checkbox 复制剪切才能点击,怎么解决呢rnnamespace 文本编辑器rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rnrn private void label1_Click(object sender, EventArgs e)rn rnrn rnrn private void button5_Click(object sender, EventArgs e)rn rn Application.Exit();rn rnrn private void button4_Click(object sender, EventArgs e)rn rn richTextBox1.Text = "";rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn richTextBox1.Text = "这里是超级编辑器\n\r欢迎使用本程序";rn richTextBox1.Font = new Font("宋体", 14, FontStyle.Bold);rn button1.Enabled = false;rn button2.Enabled = false;rn button3.Enabled = false;rn numericUpDown1.Value = 14;rnrn rnrn private void checkBox1_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Bold);rn rnrn private void checkBox3_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Italic);rn rnrn private void checkBox2_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Underline);rn rnrn private void checkBox4_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Strikeout);rn rnrn private void radioButton1_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton1.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton2_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton2.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton3_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton3.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton4_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton4.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton5_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Red;rn rnrn private void radioButton7_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Green;rn rnrn private void radioButton6_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Blue;rn rnrn private void radioButton8_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Yellow;rn rnrn private void numericUpDown1_ValueChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, (int)numericUpDown1.Value, richTextBox1.Font.Style);rn rn private void richTextBox1_TextChanged(object sender, EventArgs e)rn rn if (richTextBox1.SelectedText!= "")rn rn button1.Enabled = true;rn button2.Enabled = true;rn rn rnrnrn private void button2_Click(object sender, EventArgs e)rn rn richTextBox1.Cut();rn button2.Enabled = false;rn button1.Enabled = false;rn button3.Enabled = true;rn rnrn rn private void button1_Click(object sender, EventArgs e)rn rn richTextBox1.Copy();rn button2.Enabled = false;rn button1.Enabled = false;rn button3.Enabled = true;rn rnrn private void button3_Click(object sender, EventArgs e)rn rn richTextBox1.Paste();rn button3.Enabled = false;rn rn rn 论坛

没有更多推荐了,返回首页