|
| |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
Private Sub PictureBox2_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox2.MouseDown Me.PictureBox2.DoDragDrop(sender, DragDropEffects.Move) End Sub Private Sub GroupBox1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles GroupBox1.DragEnter e.Effect = DragDropEffects.Move \\\'拖放事件的目标所答应的动作 End Sub Private Sub GroupBox1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles GroupBox1.DragDrop Me.PictureBox1.Controls.Remove(Me.PictureBox2) Me.GroupBox1.Controls.Add(Me.PictureBox2) Me.PictureBox2.Left = 0 Me.PictureBox2.Top = 10 MessageBox.Show(\"dfgdf\") End Sub Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.GroupBox1.AllowDrop = True Me.PictureBox1.AllowDrop = True End Sub 返回类别: 教程 上一教程: 用asp.net和xml做的新闻更新系统(1) 下一教程: asp+的页面指示标识 您可以阅读与"容器中控件的拖动"相关的教程: · 控件的拖动和缩放技术全解 · .net中PictureBox中图片的拖动 · Repeater控件的分页问题 · 运行时拉伸和移动控件的类 · 一个自定义LABEL组件的C#源代码 |
| 快精灵印艺坊 版权所有 |
首页 |
||