본문 바로가기
728x90
반응형

프로그래밍32

[Xamarin, c#, UWP] UWP, How to Disable Caret Browsing in code(key F7), Disable Cursor Browsing in uwp app uwp 앱에서 코딩을 하지않아도 F7 키를 누르면 위와 같은 메시지가 뜬다. 앱 내에서 keydown , keyup 이벤트를 써도 메시지가 뜬다. 하지만 Window.Current.Dispatcher.AcceleratorKeyActivated 이벤트를 받아서 handled = true로 해주면 메시지가 뜨기전에 키보드를 잡을 수 있다. If you press F7 even if you do not code in the uwp app, the above message appears. Even if you use keydown and keyup events within the app, a message appears. but If you receive the Window.Current.Dispatcher.A.. 2022. 10. 11.
[c#, Xamarin] Control(On/Off) Numlock Key in programmatically public static class ControlNumlock { [StructLayout(LayoutKind.Sequential)] public struct INPUT { internal int type; internal short wVk; internal short wScan; internal int dwFlags; internal int time; internal IntPtr dwExtraInfo; int dummy1; int dummy2; internal int type1; internal short wVk1; internal short wScan1; internal int dwFlags1; internal int time1; internal IntPtr dwExtraInfo1; int dummy.. 2022. 8. 12.
[Xamarin] KeyDownEvent fires twice on Android public override bool OnKeyDown([GeneratedEnum] Keycode keyCode, KeyEvent e) { base.OnKeyDown(keyCode, e); // work return true; } // or public override bool DispatchKeyEvent(KeyEvent e) { base.DispatchKeyEvent(e); // work if (e.Action == KeyEventActions.Up) { KeyEventClass.CurrentHandler?.OnKeyUpEvent(e.ScanCode); } return true; } If you don't turn on the number lock, there are times when Android.. 2022. 8. 10.
[UWP] 풀스크린 모드로 변경 및 풀스크린 모드(FullScreen & Mode) ApplicationView.GetForCurrentView().FullScreenSystemOverlayMode = FullScreenSystemOverlayMode.Minimal; ApplicationView.GetForCurrentView().FullScreenSystemOverlayMode = FullScreenSystemOverlayMode.Standard; ApplicationView.GetForCurrentView().TryEnterFullScreenMode(); 전체 화면 모드에서 앱이 에지 제스처에 응답하는 방법을 지정하는 상수 ApplicationView.GetForCurrentView().TryEnterFullScreenMode(); 화면을 풀스크린 모드로 변경 FullScreenSy.. 2022. 6. 7.
[Winform, c#] 리소스에 있는 이미지 로드 1. 프로젝트에 Resources 폴더생성 2. 쓸 이미지를 드래그드롭으로 프로젝트 생성한 폴더에 넣기 3. 속성에서 '빌드 작업'을 '포함리소스' 로 변경 4. Resources 폴더에 있는 이미지를 프로젝트 Properties - Resources.resx를 클릭하여 뜨는 창에 드래그드롭 5. cs파일에서 사용( picturebox.Image = Resources.image; ) 2022. 1. 27.
[Xamarin] How to open another app with data Xamarin] How to open another app. [Xamarin] How to open another app. How to open another app in Xamarin. Use PackageManager in ~.Android project [assembly: Xamarin.Forms.Dependency(typeof(AppLinkService))] namespace MyApp.Droid.Service { public class AppLinkService :.. something-is-code.tistory.com [assembly: Xamarin.Forms.Dependency(typeof(AppLinkService))] namespace MyApp.Droid.Service { publi.. 2021. 12. 22.
[Xamarin] How to open another app. How to open another app in Xamarin. Use PackageManager in ~.Android project [assembly: Xamarin.Forms.Dependency(typeof(AppLinkService))] namespace MyApp.Droid.Service { public class AppLinkService : IServiceAppLink { public Task LaunchApp(string packageName) { bool result = false; try { PackageManager pm = Android.App.Application.Context.PackageManager; var activity = Xamarin.Essentials.Platform.. 2021. 12. 22.
[mssql] 테이블 디자인모드로 형식 수정시 테이블 삭제해야한다고 나올때 테이블 형식을 numeric에서 int로 변경할 때 테이블을 삭제하고 수정하라는 메시지가나옴 이런 메시지가 뜨는 경우 열의 Null 허용 설정을 변경할 때. 테이블의 열 순서를 변경할 때. 열 데이터 형식을 변경할 때. 새 열을 추가할 때. 수정방법 도구 > 옵션 > 디자이너 메뉴에 들어가면, 아래와 같이 테이블을 다시 만들어야 하는 변경 내용 저장 안함 부분을 체크 해지!!! 이러면 이제부터 테이블을 삭제하지 않아도 수정가능합니다. 출처 https://holjjack.tistory.com/100 2021. 2. 3.
[c#] CreateParams 사용 protected override CreateParams CreateParams { get { CreateParams createParams = base.CreateParams; createParams.ExStyle |= properties return createParams; } } properties 종류 (생각날 때 계속 추가예정) WM_NOACTIVATE = 0x8000000L; CreateParams 속성을 사용해 포커스 설정 방지하기 WS_EX_TOOLWINDOW = 0x80; 어플리케이션 숨기기 (알트탭해도 안보이기) CS_DROPSHADOW = 0x00020000; 폼의 그림자 넣고 빼기 WS_EX_COMPOSITED = 0x2000000; 화면 갱신 플리커 해결(깜박임 제거) protec.. 2021. 1. 28.
728x90
반응형