클리엘
CLIEL LAB
클리엘
전체 방문자
오늘
어제
  • 분류 전체보기 (514) N
    • Mobile (47)
      • Kotlin (47)
    • Web (84)
      • NestJS (9)
      • HTML5 & CSS3 (38)
      • Javascript (20)
      • TypeScript (6)
      • JQuery (11)
    • .NET (301) N
      • C# (84) N
      • ASP.NET (67)
      • Windows API for .NET (128)
    • Server (53)
      • SQL Server (10)
      • MariaDB (18)
      • Windows Server (6)
      • node.js (19)
    • System (12)
      • 작업LOG (12)
    • Review (11)
    • ETC (6)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

  • 블로그 정리

인기 글

태그

  • 변수
  • android studio
  • android
  • ASP.NET
  • Entity Framework
  • .NET
  • LINQ
  • node.js
  • asp.net core
  • Windows API
  • NestJS
  • CSS3
  • MariaDB
  • HTML5
  • asp.net core web api
  • c#
  • exception
  • jQuery
  • JavaScript
  • Kotlin

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
클리엘

CLIEL LAB

.NET/Windows API for .NET

SetCaretPos - Caret의 위치 변경

2019. 7. 31. 14:09
728x90

SetCaretPos함수는 인수로 지정한 위치에 Caret을 표시하도록 합니다.

Declare Function SetCaretPos Lib "user32" Alias "SetCaretPos" (ByVal x As Integer, ByVal y As Integer) As Integer

- VB.NET 선언

SetCaretPos(x위치, y위치)

- VB.NET 호출

[DllImport("user32.dll")]
public static extern int SetCaretPos(int x, int y);

- C# 선언

SetCaretPos(x위치, y위치);

- C# 호출

 

SetCaretPos함수의 인수로는 Caret을 위치시킬 x값과 y값을 정수형태로 전달합니다.

728x90
저작자표시 비영리 변경금지 (새창열림)

'.NET > Windows API for .NET' 카테고리의 다른 글

ClipCursor - Mouse의 이동영역 제한  (0) 2019.07.31
SwapMouseButton - Mouse 좌우 Button 바꾸기  (0) 2019.07.31
GetClientRect - Window나 Control의 좌표값 얻기  (0) 2019.07.31
keybd_event - Keyboard또는 Mouse입력함수  (0) 2019.07.31
EnableWindow - Program(Window)및 특정 Control사용가능여부설정  (0) 2019.07.31
    '.NET/Windows API for .NET' 카테고리의 다른 글
    • ClipCursor - Mouse의 이동영역 제한
    • SwapMouseButton - Mouse 좌우 Button 바꾸기
    • GetClientRect - Window나 Control의 좌표값 얻기
    • keybd_event - Keyboard또는 Mouse입력함수
    클리엘
    클리엘
    누구냐 넌?

    티스토리툴바