摘要:
System.Media.SoundPlayer player = new System.Media.SoundPlayer();player.SoundLocation = @"d:\music\happy.wav";player.Load();player.Play();异步播放: System.Media.SoundPlayer player = new System.Media.SoundPlayer();player.SoundLocation = @"d:\music\happy.wav";player.LoadAsync();player. 阅读全文
摘要:
因为使用的代码生成器,在插入时,空参数传递的时候会出现@…没有默认值的异常。找到private static void PrepareCommand(OleDbCommand cmd, OleDbConnection conn, OleDbTransaction trans, string cmdText, OleDbParameter[] cmdParms)方法在foreach循环里添加如下代码: //如果传递的参数没有对应的值,则设为null值 if (parm.Direction == ParameterDirection.InputOutput || parm.Direction =. 阅读全文
摘要:
TreeListNode selectNode = this.TreeList1.Selection[0];DataRowView nodeData = this.TreeList1.GetDataRecordByNode(selectNode) as DataRowView;int attachID = Convert.ToInt32(nodeData["ProductType_ID"]); 阅读全文