} //LISTEN #endregion private void rtb_LinkClicked(object sender, LinkClickedEventArgs e) { string s = e.LinkText.Substring(8); string v = s.Replace("@", " "); WinMediaPlayer.Play(rtb.Handle, v); }
private void PlayMediaFile(object sender, System.EventArgs e) { try { if (((ToolStripMenuItem)sender).Text.Equals("Play Media File")) { if (!shp1.Text.Equals("Empty")) { String ext = shp1.Text.Substring(shp1.Text.Length - 3); WinMediaPlayer.Play(rtb.Handle, _currentpath + "\\" + nickname + "_for_testing." + ext); } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }