-
August 23rd, 2009, 09:26 AM
#1
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(); } } }
-
August 23rd, 2009, 09:29 AM
#2
Re: axWindowsMediaPlayer moving different location
Originally Posted by danone
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|