System.Drawing.Graphics g = this.axWindowsMediaPlayer1.CreateGraphics(); Font f = new Font("Arial", 10); g.DrawString(DateTime.Now.ToString(), f, System.Drawing.Brushes.Red, new Point(10, 10)); g.Dispose();
System.Drawing.Graphics g = this.axWindowsMediaPlayer1.CreateGraphics(); Font f = new Font("Arial", 10); g.DrawString(DateTime.Now.ToString(), f, System.Drawing.Brushes.Red, new Point(10, 10)); g.Dispose(); 这段代码放到Form1_Paint()中不行哦!
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { System.Drawing.Graphics g = this.axWindowsMediaPlayer1.CreateGraphics(); Font f = new Font("Arial", 10); g.DrawString(DateTime.Now.ToString(), f, System.Drawing.Brushes.Red, new Point(10, 5)); g.Dispose(); this.Refresh(); }
Font f = new Font("Arial", 10);
g.DrawString(DateTime.Now.ToString(), f, System.Drawing.Brushes.Red, new Point(10, 10));
g.Dispose();
Font f = new Font("Arial", 10);
g.DrawString(DateTime.Now.ToString(), f, System.Drawing.Brushes.Red, new Point(10, 10));
g.Dispose(); 这段代码放到Form1_Paint()中不行哦!
{
System.Drawing.Graphics g = this.axWindowsMediaPlayer1.CreateGraphics();
Font f = new Font("Arial", 10);
g.DrawString(DateTime.Now.ToString(), f, System.Drawing.Brushes.Red, new Point(10, 5));
g.Dispose();
this.Refresh();
}