我尝试使用public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Form2 myForm2 = new Form2();
// Do not use this line if you handle looping through the controls
// in your combobox1_SelectedIndexChanged method.
comboBox1.SelectedIndexChanged += myForm2.HandlerForIndexChanges;
myForm2.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
// This handles the selection change.
foreach (Form2 cont in panel4.Controls.OfType<Form2>())
{
cont.SomeOtherWay("Some", "Other", "Way");
}
}
}
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
public void HandlerForIndexChanges(object o, EventArgs e)
{
// I can handle the event change here for my form as well.
}
public void SomeOtherWay(string st, string st2, string st3)
{
// Access to more data!!!
}
}
来处理轨道的结尾,但从未使用缓冲的Bytes与totalBytes相同来调用它。
是否可以处理轨道末端?
答案 0 :(得分:0)
也许progress
的{{1}}属性可以派上用场。
DZRPlayer