본문 바로가기

C# 64

[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.
특정 위치에 파일 중복 여부 체크 하고 새로운 파일명 구하기 예제 특정 위치에 파일 중복 여부 체크 하고 새로운 파일명 구하기 예제 특정위치에 동일한 파일명이 존재하는지 체크하고 , 동일한 파일명이 존재한다면 ex) 파일(1).jpg , 파일(2).jpg로 변경 처리하는 방안 입니다! public static class ExtentionMethods { public static string FileNameDupCheck(this string fullPath) { if (File.Exists(fullPath)) { string reNamePath = string.Empty; string filePath = Path.GetDirectoryName(fullPath); string fileName = Path.GetFileNameWithoutExtension(fullPath).. 2023. 8. 23.