본문 바로가기

C# /WindowsForm35

[C#] ListView Control 동적으로 Control 추가 후 Scroll 시에 위치 조정 방안 [C#] ListView Control 동적으로 Control 추가 후 Scroll 시에 위치 조정 방안 출처 : Handling scroll event on listview in c# - Stack Overflow Handling scroll event on listview in c# I have a listview that generates thumbnail using a backgroundworker. When the listview is being scrolled i want to pause the backgroundworker and get the current value of the scrolled area, when th... stackoverflow.com ListView에 TextBox를.. 2022. 11. 23.
HttpListener를 이용한 Simple한 Web서버 구현 예제 출처 : https://gist.github.com/define-private-public/d05bc52dd0bed1c4699d49e2737e80e7 A Simple HTTP server in C# A Simple HTTP server in C#. GitHub Gist: instantly share code, notes, and snippets. gist.github.com public class HttpListenerWebServer { private HttpListener listner; private string url = string.Empty; private int requestCount = 0; private FormTray myTrayForm = null; public HttpListener.. 2022. 8. 18.
[webview2] window.print 호출 시에 사용자의 Default Printer 선택 하게 옵션 설정 출처 : Set the system default printer as the default printer (admx.help) Set the system default printer as the default printer Set the system default printer as the default printer Tells Microsoft Edge to use the system default printer as the default choice in Print Preview instead of the most recently used printer. If you disable this policy or don't configure it, Print Preview u admx.help HKEY_C.. 2022. 6. 13.
WebView2 Fixed 버젼 이용 시에 참조 부분 // msedgewebview2.exe 가 포함 되어 있는 디렉터리를 이용하여 참조 시에 // 아래와 같이 지정 하여 사용 하였습니다. this.webView2.CreationProperties = new Microsoft.Web.WebView2.WinForms.CoreWebView2CreationProperties { BrowserExecutableFolder = string.Format(@"{0}\webView2", Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)), // Webview2 관련 Fixed 구성 요소 디렉터리 위치 Language="en-US" }; await webView2.EnsureCoreWebView2Async(); 2022. 5. 29.