摘要:
在.NET的winform里面,没有托管的音乐播放器,API只能播放WAV格式,对于MP3等形式的音频文件,就要依赖于 MediaPlayer里,嘿嘿 使用的方法: 在toolbox上点右键,选择“选择项目(Choose Items)”,切到COM页,找到 Windows Media Player, 勾选,确定 在toolbox上,把刚才加入的MediaPlayer控件,拖放到... 阅读全文
摘要:
在HTML代码中,img的写法大致如下: 我们利用正则表达式来提取 width 和 height 的值: string str = ""; string pattern = "width\\s?=\\s?\"(\\d+)\"\\s+height\\s?=\\s?\"(\\d+)"; System.Text.RegularExpressions.Regex regex = new S... 阅读全文