본문 바로가기

Language111

WPF usercontrol을 winform에서 사용하기 전제조건. WPF userconrol이 있다. 사용하기.1. 참조추가- C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationFramework.dll (찾아보기) - C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationCore.dll (찾아보기) - WindowsFormsIntegration (.Net) 2. using 추가using System.Windows.Controls; using System.Windows.Forms.Integrati.. 2016. 2. 4.
정규식 패턴 RegularExpression을 사용하여 Replace, Search, 패턴검사를 쉽게 할수 있다.' 정규식을 사용한 우편번호 패턴채크 Dim regex As System.Text.RegularExpressions.Regex = _ New System.Text.RegularExpressions.Regex("^\d{3}-\d{3}$") If regex.IsMatch(Me.txtPostNo.Text) Then MessageBox.Show("올바른 우편번호") End If 전자메일 주소 확인Public Class Tester Public Shared Sub Main Dim testString As String Dim emailPattern As String = _ "^([0-9a-zA-Z]+[-._+&])*.. 2016. 2. 4.
Image 배율만큼 확대 /// /// 확대 퍼센트 변수 /// 기본 값 500% /// double dZoomPercent = 500; _img = bmp as Image; Bitmap ConvertImg = new Bitmap(_img, (int)(_img.Size.Width*dZoomPercent/100), (int)(_img.Size.Height*dZoomPercent/100)); _form.BackgroundImage = ConvertImg; 2016. 2. 4.
MSChart Control 설치방법 MS Visual Studio에서 제공하는 Chart component 이다. Dundas chart의 이전 버전을 Microsoft에서 라이센스하여 제공한다고 하며, 무료로 사용 가능하다. 1. 사전 필요사항 - MS Visual Studio 2008 SP1 (Visual Studio 2008 C# Express, Webdeveloper 2008 에서도 사용 가능) Microsoft .NET Framework 3.5 SP1 2. 설치 파일 MSChart.exe MSChart_VisualStudioAddOn.exe DataVisChartControl.zip DataVisChartControl.z01 WebSamples.zip WinSamples.zip WinSamples.z01 WinSamples.z02.. 2016. 2. 4.
Microsoft Public License (MS-PL) Microsoft Public License (MS-PL)This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any addi.. 2016. 2. 4.
Winform에서 키 이벤트 안먹음 출처 : http://hoons.kr/board.aspx?Name=cshaptip&Mode=2&BoardIdx=36306&Key=&Value= 제목: [펌] 윈폼에서 단축키 설정..글쓴이: 블루아사평점: 10.0/10 (2명 참여)조회: 2268윈폼(via C#)으로 각종 툴, 어플리케이션을 만들 때 유저키덕후들을 위한 단축키가 필요할 수 있다. 마우스라는 혁신적인 입력 장치가 있더라도 숙련되면 키보드 이상가기 힘드니까 :) 언뜻 생각하기에는 System.Windows.Forms.Form 클래스에서 KeyDown 이벤트를 잡아서 처리를 하면 될 것 같아 해보았지만, 동작하지 않는다 ㅇㅂㅇ;; Google신(MS는 Bing신...)에 문의 결과 ProcessCmdKey 메소드를 오버라이드 한다면 된다고 한.. 2016. 2. 4.
반응형