请教在WindowsMediaPlayer控件上绘图可行吗?想用在GDI+在WindowsMediaPlayer播放的同时在上面绘一些线条。不知道加个透明控件在上面可不可行?谢谢,请指教!小弟实习,新人!没分给各位了。Sorry!

解决方案 »

  1.   

    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(); 
      

  2.   

    不太懂您的意思我在axWindowsMediaPlayer1_Enter函数里面加的这段代码,没效果能帮忙给个示例吗? 非常感谢!
      

  3.   

    我在 Form1_Paint下添加这些代码,在WindowsMediaPlayer上画不出来有没有其他的在WindowsMediaPlayer控件上绘图的?谢谢!
      

  4.   

    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()中不行哦!
      

  5.   

    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();
    }