본문 바로가기

C# 65

[WPF] TrayIcon 생성 시에 Resource 의 이미지 설정 하기 출처 : https://stackoverflow.com/questions/74466/how-do-i-use-an-icon-that-is-a-resource-in-wpf How do I use an icon that is a resource in WPF? I have a .ico file that is embedded as a resource (build action set to resource). I am trying to create a NotifyIcon. How can I reference my icon? notifyIcon = new NotifyIcon(); notifyIcon.Icon ... stackoverflow.com 프로젝트의 리소스 관리자에서 Icon 을 추가 완료 후 Icon 파일에 .. 2024. 4. 2.
[WPF] Title Bar에 최소화,최대화,닫기 버튼 숨기는 방안 [WPF] Title Bar에 최소화,최대화,닫기 버튼 숨기는 방안 출처 : c# - How to hide close button in WPF window? - Stack Overflow How to hide close button in WPF window? I'm writing a modal dialog in WPF. How do I set a WPF window to not have a close button? I'd still like for its WindowState to have a normal title bar. I found ResizeMode, WindowState, and WindowS... stackoverflow.com Loaded 이벤트에 명시 하였습니다! /// /// MainW.. 2024. 3. 21.
[C#] HttpClient.PostAsync 메서드 에는 HttpCompletionOption을 설정 할 수 없는 부분에 대한 대처 방안 [C#] HttpClient.PostAsync 메서드 에는 HttpCompletionOption을 설정 할 수 없는 부분에 대한 대처 방안 public async void httpTest() { Cookie cookie = new Cookie("JSESSIONID", "DFGDAS12890123SDFSDF"); CookieContainer cookieContainer = new CookieContainer(); cookieContainer.Add(new Uri("http://dev.test.com"), cookie); using (HttpClientHandler handler = new HttpClientHandler() { CookieContainer = cookieContainer }) using (.. 2024. 2. 4.
[C#] HttpClient 에 CookieContainer 이용 JSESSIONID 설정 진행 예제 JAVA WAS Application 의 Session Name이 JSSESSIONID 로 설정되어있을때는 아래와 같이 설정 하면 될 거 같습니다. 다른 이름을 지정하였다면 , Cookie의 Key Name에 해당 하는 Name을 지정 하시면 됩니다. namespace CustomProgressBar { /// /// MainWindow.xaml에 대한 상호 작용 논리 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Cookie cookie = new Cookie("JSESSIONID", "DFGDAS12890123SDFSDF"); CookieContainer cookieContainer .. 2024. 2. 4.