전체 보기522 ActiveX UAC 문제 개요 XP에서 정상동작하던 ActiveX가 비스타 이상에서는 정상적으로 동작하지 않는 경우가 발생하였습니다. 원인은 비스타에서 강화된 보안의 영향으로 ActiveX에서 PC 주요 내부를 사용할 경우, 관리자 권한이 필요하게 되었는데, 일반적인 모드에서는 관리자 모드가 아니기 때문에, 관련 기능이 실패하여 발생한 문제였습니다. 다음은 비스타에서 일반적인 사용자 모드에서는 권한이 제한되는 기능들입니다. Change files in Program Files foldersChange files in Windows or System32 foldersChange registry under HKLM\SoftwareChange the local machines date and timeInstall or uninstal.. 2016. 2. 4. DEP 기능 비호환 ActiveX Windowless ActiveX controls are not supported 현상은 간단했습니다. 3rd-party 컨트롤을 WinForm 에 올려놓았는데, 아래와 같이 EndInit 메서드 실행에서 예외가 발생하였습니다. private void InitializeComponent() { ; 생략 ((System.ComponentModel.ISupportInitialize)(this.axXObject1)).EndInit(); // 예외 발생 this.ResumeLayout( false ); } "System.Reflection.TargetInvocationException: Unable to get the window handle for the '' control. Windowless ActiveX.. 2016. 2. 4. C# 리본메뉴 다운로드 경로: http://windowsribbon.codeplex.com/Project DescriptionWindows Ribbon for WinForms is a .NET wrapper for Windows 7 Ribbon control. It will allow WinForms developers to use Microsoft Windows 7 Ribbon control in their WinForms applications. The project includes the library RibbonLib, which adds support for Windows Ribbon to WinForms application and sample applications, written both in C# an.. 2016. 2. 4. 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. 이전 1 ··· 75 76 77 78 79 80 81 ··· 87 다음 반응형