본문 바로가기

분류 전체보기590

웹서비스 .net compact framework 2,0 사용시 웹참조 동적으로 하기 출처 : http://thinkinginhands.tistory.com/14 .net cf2.0에서 웹 참조를 동적으로 하기 위해서 reference.cs 파일에 웹참조 클래스에서 아래 그림과 같이 생성자를 하나 더 만들어 url을 동적으로 생성해 주었다. 위 그림의 빨간색 박스가 추가한 생성자 이다. url은 config 파일을 만들어 동적으로 수정할 수 있도록 하였으면 위 생성자를 호출하는 부분은 아래 그림과 같다. wsFile 은 웹참조 주소가 저장되어 있는 config 파일이며, setWsAddr()은 이 주소를 동적으로 셋팅해 주는 부분이다. 2008. 12. 3.
string.Split sting aaa= "1|2|3|"; string[] arrayStr = aaa.Spllit(new Char[] {'|'}); string bbb = arrayStr[0]; 2008. 12. 2.
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.