Hallo Zusammen, ich schreibe nen kleines Programm, was Mp3's abspielen -und anschliessend auch zurecht schneiden kann.
Habe jetzt nen kleines Problem mit dem Start & Stop Button.
Hier mal der Code:
C#-Quelltext
1: 2: 3: 4: 5: 6: 7:
| public void toolStripButton1_Click(object sender, EventArgs e) { mp3 = ofd.FileName;
Audio soundPlay = new Audio(mp3); soundPlay.Play(); } |
Wie deklarier ich jetzt "soundPlay" für alle anderen Button, also Global..?
Danke für eure Hilfe..!
Moderiert von raziel: C#-Tags hinzugefügt