private RichTextBox Getnew() { RichTextBox box = null; TabPage z = tabControl1.SelectedTab; if (z != null | z == null) { box = z.Controls[0] as RichTextBox; } return box; } private void dateTimeToolStripMenuItem_Click(object sender, EventArgs e) { if (dateTimeToolStripMenuItem.Checked == true) { Getnew().Text = Getnew().Text.Insert(0, DateTime.Now.ToLongDateString() + DateTime.Now.ToLongTimeString()+"\n"); } } private void dateTimeToolStripMenuItem_CheckStateChanged(object sender, EventArgs e) { // Sorry I've Removed this. }
dateTimeToolStripMenuItem_Click
else
if
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)