본문 바로가기

전체 글

(86)
C# 마우스 인풋 API Using the Windows API to emulate hardware input in C# https://www.chriswirz.com/software/using-windows-api-to-emulate-user-input-in-c-sharp Using the Windows API to emulate hardware input in C# C# is managed code, but parts of the Windows API were built before the introduction of C#. Fortunately, there are InteropServices to call the API www.chriswirz.com
C# 마우스 커서 Cursor Show / Hide 마우스 커서 Cursor Show / Hide [DllImport("user32.dll")] static extern int ShowCursor(bool bShow); ShowCursor(false);
C# 프로그램 최상위 활성화 ForegroundWindow 프로그램 최상위 활성화 http://story0111.tistory.com/44 ④ C# 프로젝트 -1 프로그램명으로 프로그램 최상위로 활성화시키기(윈도우 전역) == Activate the top 프로그램명으로 최소화나 다른 프로그램이 활성화 되어있을때 최상위로 활성화 시켜주는 소스입니다. 예로 버튼을 만들어서 버튼을 누를때 최상위로 올라오도록했습니다. 다른 방법으로 단축� story0111.tistory.com 1. 프로그램 이름을 사용하는 방법 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using S..
C# Windows API 참고사이트 Windows API 참고사이트 http://www.pinvoke.net/index.aspx
C# (NPOI) Excel 읽기 (NPOI) Excel 읽기 1. 누겟에서 NPOI 설치 2. code 작성 using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System..
C# shader 참고 페이지 shader 참고 페이지 https://docs.microsoft.com/ko-kr/dotnet/api/system.windows.media.effects.shadereffect?view=netframework-4.7.2 ShaderEffect Class (System.Windows.Media.Effects) 를 사용하여 사용자 지정 비트맵 효과를 제공합니다.Provides a custom bitmap effect by using a . docs.microsoft.com
C# Http Post File Upload C# Http Post File Upload private async void Button_Click(object sender, RoutedEventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Multiselect = true; if (dlg.ShowDialog() == true) { var result = await Upload(new List(dlg.SafeFileNames), new List(dlg.FileNames)); MessageBox.Show(result ? "성공" : "실패"); } } private async Task Upload(List fileNames, List filePaths) { try { var url = "http:..
C# TCP Client C# TCP Client class CTcpClient { TcpClient client; NetworkStream stream; private Thread m_ListenThread; string serverIP; string tvID; public delegate void OnMessageDele(string message); public event OnMessageDele OnMessage; public CTcpClient() { } public void Connect(string serverIP, string tvID) { this.serverIP = serverIP; this.tvID = tvID; m_ListenThread = new Thread(ConnectTCP); m_ListenThrea..