Application179 Simple C# Class to Play .WAV Files in .NET class classWavPlay { //[DllImport("WinMM.dll")] [DllImport("winmm.dll", EntryPoint="PlaySound",CharSet=CharSet.Auto)] //public static extern bool PlaySound(byte[] wfname, int fuSound); private static extern int PlaySound(String pszSound, int hmod, int falgs); // flag values for SoundFlags argument on PlaySound public int SND_SYNC = 0x0000; // play synchronously // (default) public int SND_ASYNC .. 2008. 11. 27. DataGridView header checkbox insert class DGVColumnHeader : DataGridViewColumnHeaderCell { private Rectangle CheckBoxRegion; private bool checkAll = false; protected override void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates dataGridViewElementState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle.. 2008. 11. 26. datagridview 체크 컬럼 추가 private void AddOutOfOfficeColumn() { DataGridViewCheckBoxColumn column = new DataGridViewCheckBoxColumn(); { column.HeaderText = ColumnName.OutOfOffice.ToString(); column.Name = ColumnName.OutOfOffice.ToString(); column.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells; column.FlatStyle = FlatStyle.Standard; column.ThreeState = true; column.CellTemplate = new DataGridViewCheckBoxCell.. 2008. 11. 26. Upload any type of File through a C# Web Service Introduction This article shall describe an approach that may be used to upload any sort of a file through a web service from a Windows Forms application. The approach demonstrated does not rely on the ASP.NET file uploader control and allows the developer the opportunity to upload files programmatically and without user intervention. Such an approach may be useful for doing something like proce.. 2008. 11. 14. 이전 1 ··· 10 11 12 13 14 15 16 ··· 45 다음