//4:字体对话框 private void FontLabel_Click(object sender, System.EventArgs e) { MyFontDialog.Font = ResultLabel.Font; MyFontDialog.ShowApply = true; MyFontDialog.ShowEffects = true; if (MyFontDialog.ShowDialog() == DialogResult.OK) { ResultLabel.Font = MyFontDialog.Font; } }
private void inneToolStripMenuItem_Click(object sender, EventArgs e) { FontDialog fontDialog = new MyFontDialog(); fontDialog.ShowColor = true; fontDialog.Color = toolStripStatusLabel1.ForeColor; fontDialog.Font = toolStripStatusLabel1.Font; if (fontDialog.ShowDialog() == DialogResult.OK) { toolStripStatusLabel1.Font = fontDialog.Font; toolStripStatusLabel1.ForeColor = fontDialog.Color; toolStripStatusLabel1.Text = "Zmiana czcionki tego paska powiadomień przebiegła pomyślnie..."; } }