ContextMenuStrip

Study/C#, Winform

[C# Winform] Context Menu를 Button 옆에 띄우기

Context Menu라는 것이 있습니다. 이런 메뉴를 Context Menu라고 합니다. 이 Context Menu를 버튼 옆에 띄워봅시다. 버튼을 하나 생성하고 이름(Name)은 btnTest라고 했습니다. 그리고 일반 Context Menu가 아닌 Context Menu Strip을 사용하겠습니다. 버튼을 더블 클릭하여 버튼 클릭 이벤트를 하나 만들어봅니다. private void btnTest_Click(object sender, EventArgs e) { // Context Menu Strip 생성 ContextMenuStrip contextMenuStrip = new ContextMenuStrip(); // 메뉴 아이템 1 ToolStripMenuItem menuItem = new ToolSt..

Eskeptor
'ContextMenuStrip' 태그의 글 목록