.NET
-
TreeGridView C# VS2008.NET/C# Form 2010. 3. 24. 17:50
Original version VS2005 Link : http://blogs.msdn.com/markrideout/archive/2006/01/08/customizing-the-datagridview-to-support-expanding-collapsing-ala-treegridview.aspx http://blogs.msdn.com/markrideout/archive/2006/01/18/new-link-for-treegridview.aspx License Code samples and components are provided under the Microsoft Public License Ms-PL(Microsoft Permissive License) - Ms-PL은 Microsoft 소스 코드 라이..
-
[C#] String.Format 을 이용한 문자정렬 왼쪽 오른쪽 가운데 | String alignment Left Right Center.NET/C# Basic 2010. 3. 20. 13:05
기초를 튼튼히 하면 삽질을 줄일수 있어요! You based foundation when the shoveling to reduce. Result : Code : static void Main(string[] args) { Console.WriteLine("123456789012345678901234567890123456789012");// 총길이 42칸 Console.WriteLine(String.Format("{0,42}", "test")); //우측정렬 Console.WriteLine(String.Format("{0,-42}", "te13123123st")); //좌측정렬 Console.WriteLine(String.Format("{0}", "1").PadLeft(42 - (21 - ("1".Len..
-
좀비 프로세스 | Application.Exit() vs Environmrnt.Exit(0).NET/Basic is the Best 2010. 3. 16. 10:43
좀비 프로세스 - 프로세스 종료 후에도 메모리에서 사라지지않는 프로세스 좀비 프로세스 발생원인 - 자식프로세스가 종료되었는데 부모프로세스가 종료되지 않았거나, 부모프로세스가 wait()계열 함수를 호출해서 자식프로세스를 정리하지 않았을 경우 발생한다. 출처 : http://www.megasolutions.net/cSharp/Application_Exit()-vs-Environmrnt_Exit(0)-44501.aspx Application.Exit() vs Environmrnt.Exit(0) Hi All, When I use applcation.exit() in winForm application, the form closed, but the process is still going!! ( The debu..
-
OpenCvSharpExtern 참조 에러.NET/OpenCVSharp 2010. 3. 15. 03:58
출처 : http://d.hatena.ne.jp/Schima/20090616/1245081217 OpenCvSharpExtern. dll 복사본 설정MachineLearning (기계 학습)과 Blob (라벨링)를 이용하는 경우에만 다음과 같은 설정이 필요합니다. 사용하지 않으면이 항목은 읽기 생략합니다. MachineLearning과 Blob를 이용하기 위해서는 C + +와 C #의 교량 역할을한다 "OpenCvSharpExtern. dll"가 필요합니다. 이 DLL이 실행 파일과 동일한 디렉토리에 없으면 안됩니다. 따라서 속성을 편집하고 출력 디렉터리에 "변경된 내용만 복사"설정합니다. OpenCvSharpExtern. dll 복사본 설정 MachineLearning (기계 학습)과 Blob (라벨링..
-
Windows® API Code Pack for Microsoft® .NET Framework.NET/Framwork 2010. 3. 9. 23:21
http://code.msdn.microsoft.com/WindowsAPICodePack Windows® API Code Pack for Microsoft® .NET Framework provides a source code library that can be used to access some features of Windows 7 and Windows Vista from managed code. These Windows features are not available to developers today in the .NET Framework. The individual features supported in this version (v1.0.1) of the library are: Windows 7 ..
-
[ODP.NET] Oracle Data Provider for .NET.NET/Tip 2010. 3. 9. 19:00
http://www.oracle.com/technology/global/kr/tech/windows/odpnet/index.html Oracle Data Provider for .NET TheOracle Data Provider for .NET (ODP.NET) 은 오라클 데이타베이스에 대한 .NET 환경으로부터의 데이타 접근을 최적화합니다. ODP.NET은 RAC(Real Application Cluster), XML DB, 보안 기능과 같은 오라클의 첨단 데이타베이스 기능을 개발자가 활용할 수 있도록 합니다. ODP.NET은 C#, Visual Basic .NET 등 모든 종류의 .NET 언어를 지원합니다. ODP.NET은 오라클을 이용하는 .NET 환경의 유연성, 성능, 안정성을 향상시킵니다. OD..
-
[WCF] 클라이언트에서 ArrayList를 WCF서비스 인자로 넘기기 꼼수.NET/WCF 2010. 3. 5. 21:41
-- Client 단 List list2 = new List(); ArrayList arList = new ArrayList(); for(int j = 0 ; j = 3; j++) { for (int i = 0; i < 10; i++) { list2.Add(i.ToString()); } arList.Add(list2); } //ArrayList를 직렬화 //Soap 메세지가 XML기반이끼대문에 String으로 받아야함 string t123 = CommonClass.SerializeListStringArrayList(arList); serviceClient.Insert(LoginData.CommonCode, list1.ToArray(), t123 ); .... public static class Commo..
-
VS2008 WCF 메서드 오버로딩 버그 발견 | Visual Studio 2008 WCF Method Overloading Bug | HTTP 404 Error.NET/WCF 2010. 2. 12. 17:43
WCF 인터페이스 구현부 [OperationContract] [TransactionFlow(TransactionFlowOption.NotAllowed)] int CodeConfigsUpdate(string tempKey, int[] tempValue); [OperationContract] [TransactionFlow(TransactionFlowOption.NotAllowed)] ListBoxAdd CodeConfigsUpdate(string comCode, int types); 에서 이와 같이 빌드하면 빌드는 잘된다 하지만 2008 런타임상의 버그를 잡아내지 못한다 비주얼 툴이 WCF 메서드오버라이딩을 인식을 하지 못하는것이다 그리고 HTTP 404 에러를 토해낸다 한참을 IIS문제인양 삽질을 했다 그..
-
[C#] char[] + char[] = char[]?? | char[] Merge.NET/C# Basic 2010. 2. 9. 12:45
char[] c2 = { (char)0x1B, (char)0x21 }; char[] c2_2 = " 영 수 증 ".ToCharArray(); char[] c2_3 = { (char)0x1B, (char)'!', (char)0x1 }; IEnumerable ieC2 = c2.ToArray(); IEnumerable ieC2_2 = c2_2.ToArray(); IEnumerable ieC2_3 = c2_3.ToArray(); ieC2 = ieC2.Concat(ieC2_2); ieC2 = ieC2.Concat(ieC2_3); foreach (char item in ieC2) { label1.Text += item; } code of http://faram.tistory.com/ from
-
[.NET] LINQ를 보다 쉽게 작성하기 LINQPad.NET/LINQ 2010. 2. 6. 11:40
링큐 를 좀 더 사용하기 쉽게~!! http://www.linqpad.net/ 조셉 알바하리 : 영국 최대의 의료 소프트웨어 공급사인 에그톤 의료정보 시스템의 C# 디자인 아키텍트, 『C# 3.0 in a Nutshell』 공저자 Writing LINQ Queries with LINQPadDate: This event took place live on February 20 2008 Presented by: Joseph Albahari Link http://oreilly.com/pub/e/909 Tired of querying in antiquated SQL?Well, you don't have to! LINQPad lets you interactively query SQL databases in a mo..
-
XNA Game FrameWork 관련 정보.NET/XNA Framwork 2010. 2. 6. 10:23
http://msdn.microsoft.com/en-us/library/aa139594.aspx http://www.riemers.net/ http://blog.naver.com/fly33499 http://msdn.microsoft.com/en-us/aa937791(en-us).aspx XNA 번역서 http://blogs.msdn.com/noenemy/archive/2010/01/04/xna.aspx XNA 개발 프레임워크 XNA는 XBOX와 Windows용 게임 애플리케이션을 .net 기반으로 통합해서 개발할 수 있도록 제공되는 framework 입니다. 2008년 10월에 Version 3.0이 출시되면서 휴대용 멀티미디어 장치인 Zune 용 애플리케이션도 XNA를 이용해서 개발 할 수 있게 되었..
-
사용예) StringCollection 과 string[] int[] converterMethod.NET/C# Basic 2010. 2. 2. 12:02
StringCollection stringCollection = new StringCollection(); stringCollection.AddRange(list1.ToArray()); stringCollection.Add("|"); stringCollection.AddRange(CommonClass.ExtensionMethods.ToStringArray(list2.ToArray())); public static class ExtensionMethods { public static string[] ToStringArray(this int[] intArray) { return Array.ConvertAll(intArray, delegate(int intParameter) { return intParamet..
-
[C#] 하드시리얼넘버, 외부IP, 내부IP, DNS , NetBios, GUID 그위드 , 클릭온스 버전, 외부아이피 내부아이피 구하기 메서드.NET/C# Basic 2010. 1. 28. 11:06
public static class SystemClass { // 하드시리얼넘버 public static string GetHDDSerialNumber(string drive) { if (drive == "" || drive == null) { drive = "C"; } ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"" + drive + ":\""); disk.Get(); return disk["VolumeSerialNumber"].ToString(); } // 외부 아이피 public static string GetIP() { string tempIp = string.Empty; try { tempIp = new W..
-
[WCF] WSDL 서버주소가 PC명으로 고정되는경우 IIS 6.0.NET/WCF 2010. 1. 21. 19:11
WCF 서비스중 svcutil.exex http:// 컴퓨터이름:1234/Service.svc?wsdl 로 고정되는경우 IIS 6.0 관리자 -> 웹사이트 -> 속성 -> 웹사이트 -> 고급 -> 선택, 편집 -> IP주소 입력 -> TCP포트 설정 -> 호스트헤더 값에 IP나 도메인 주소를 입력 IIS 재시작 -> WCF 프로젝트 다시 빌드 -> 확인 참고 : http://hoons.kr/Lecture/LectureView.aspx?BoardIdx=16802&kind=32
-
[C#/Winform] 단일 인스턴스 (닷넷 응용프로그램 중복실행 문제).NET/C# Form 2010. 1. 18. 18:56
static class Program { /// /// 해당 응용 프로그램의 주 진입점입니다. /// [STAThread] static void Main() { if (Class.SystemClass.MutexStart()) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AnyspoClient.Class.LogoutCondition.Flag = "메인"; Application.Run(new AnyspoClient.Main.Main()); Application.DoEvents(); } else MessageBox.Show("이미 실행 중입니다"); } } public static bool Mu..
-
-
클릭온스 ClickOnce 실행 중일때 버전 정보 얻기.NET/SmartClient 2009. 12. 31. 15:23
using System.Deployment.Application; if (ApplicationDeployment.IsNetworkDeployed) { Version myVersion = ApplicationDeployment.CurrentDeployment.CurrentVersion; lblVersion.Text = string.Format("{0}.{1}.{2}.{3}", myVersion.Major, myVersion.Minor, myVersion.Build, myVersion.Revision); }
-
-
-
응용 프로그램 샘플(WPF).NET/WPF 2009. 12. 17. 20:38
http://msdn.microsoft.com/ko-kr/library/ms771542.aspx Windows Presentation Foundation 샘플 Windows Presentation Foundation 샘플 업데이트: 2007년 11월 응용 프로그램 샘플(WPF) 업데이트: 2007년 11월 응용 프로그램 샘플은 WPF(Windows Presentation Foundation)의 다중 플랫폼 기능을 보여 주는 종단 간 응용 프로그램입니다. 이 샘플은 실제 사용 시나리오를 보여 주기 위한 것이며, WPF의 다양한 기능을 확인하는 효과적인 방법입니다. WPF 및 Microsoft .NET Framework 응용 프로그램 개발을 위한 최선의 방법에 대한 자세한 내용은 다음에서 해당 항목을 참조하..
-
단일 인스턴스 검색 샘플.NET/WPF 2009. 12. 14. 18:47
http://msdn.microsoft.com/ko-kr/library/ms771662.aspx 모두 축소 이 페이지에서 다루는 특정 제품:. Microsoft Visual Studio 2008/.NET Framework 3.5 다음 제품들은 다른 버전에서 다루어 집니다. .NET Framework 3.0 Windows Presentation Foundation 샘플 단일 인스턴스 검색 샘플 업데이트: 2007년 11월 이 샘플에서는 독립 실행형 응용 프로그램에 대해 단일 인스턴스 검색을 구현하는 방법을 보여 줍니다. 이 샘플에서는 Windows Presentation Foundation의 특정 기능에 대해 설명하므로 최선의 응용 프로그램 개발 방법을 따르지 않습니다. WPF(Windows Present..