VB.NET(8)
-
C#/VB.NET Panel 안의 Control 반복하여 원하는 Control 찾기
C# /// /// 지정 된 nName 이라는 버튼 이름을 가지고 /// 패널위치를 찾고 버튼을 눌러준다. /// /// private void ShowPanelScreen(ref string mName) { if (mName != "") { // 메인 패널들 foreach (Control p in panels) { // 메인 패널 안의 패널 foreach (Control ps in p.Controls) { if ((ps.GetType == typeof(Button))) { System.Diagnostics.Debug.Print("Name : " + ps.Name + ", type : " + ps.GetType.ToString); if ((mName == ps.Name)) { Button btn = ps..
2020.01.14 -
VB.NET 드래그 앤 드랍 구현 하기
파일 드래그 후 패널에 올렸을 때 - Drag Enter Private Sub DragOver_OnPanel(sender As Object, e As Windows.Forms.DragEventArgs) Handles panel_upload.DragEnter If (e.Data.GetDataPresent(Windows.DataFormats.FileDrop)) Then e.Effect = DragDropEffects.Copy Else e.Effect = DragDropEffects.None End If End Sub 파일 드래그 하여 올렸다 놨을 때 - Drag Drop Private Sub DragDrop_OnPanel(sender As Object, e As System.Windows.Forms.Drag..
2019.06.20