axWindowsMediaPlayer moving different location
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: axWindowsMediaPlayer moving different location

  1. #1
    Join Date
    Aug 2009
    Posts
    2

    axWindowsMediaPlayer moving different location

    hi this is my first time in writing this forum, i am having problems that when i move the panel to another location while the wmplayer is playing when viewing the movie the wmplayer is blinking how can i stop this from happening what is the code. I actually dont want it to blink while moving the movie hope you understand my problem my code

    Code:
    private void button1_Click(object sender, EventArgs e)        {           panelmove();      }
     
        
     
      private void Form1_Load(object sender, EventArgs e)        {            panel1.Location = new Point(x, y);                    }
            public void panelmove()        {
                axWindowsMediaPlayer1.URL = @"C:\A.AVI";                        for (int i = 0; i < 450; i++)            {                System.Threading.Thread.Sleep(100);                     Application.DoEvents();                panel1.Location = new Point(100,i);                        if (i == 400)                {                    panelmove();                }                            }                         }

  2. #2
    Join Date
    Aug 2009
    Posts
    2

    Re: axWindowsMediaPlayer moving different location

    Quote Originally Posted by danone View Post
    hi this is my first time in writing this forum, i am having problems that when i move the panel to another location while the wmplayer is playing when viewing the movie the wmplayer is blinking how can i stop this from happening what is the code. I actually dont want it to blink while moving the movie hope you understand my problem my code

    Code:
    
    private void button1_click(object sender, eventargs e)
    {
    panelmove();
    } 
    private void form1_load(object sender, eventargs e)
    {
    panel1.location = new point(x, y);
    
    } 
    public void panelmove()
    { 
    
    axwindowsmediaplayer1.url = @"c:\a.avi";
    
    for (int i = 0; i < 450; i++)
    {
    system.threading.thread.sleep(100); 
    application.doevents();
    panel1.location = new point(100,i);
    
    if (i == 400)
    {
    panelmove();
    }
    
    } 
    
    }
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center