Results 1 to 6 of 6

Thread: MouseDown Event Help Needed (DataGrid) [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677

    MouseDown Event Help Needed (DataGrid) [RESOLVED]

    Here is the code I use to initiate a Drag and Drop Sequence:

    VB Code:
    1. Private Sub DataGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    2.     If Button = vbLeftButton Then 'Begins the dragging process
    3.         DataGrid1.DragIcon = QuoteForm.ImageList1.ListImages(6).Picture
    4.         DataGrid1.Drag vbBeginDrag
    5.         IMTextBox.Text = DataGrid1.Text
    6.         QuoteForm.dragging = True
    7.         QuoteForm.Show
    8.     End If
    9.     QuoteForm.txtDragValue = DataGrid1.Text & "_MAT"
    10. End Sub

    This works great for Drag and Drop BUT if I need to resize the DataGrid Columns, it doesn't work as VB thinks I'm in the middle of a Drag and Drop. Can someone help me change my code so that I can still use it to Drag and Drop BUT still give my users the ability to resize the columns? Thanks, Jeremy
    Last edited by JCScoobyRS; Apr 3rd, 2003 at 12:30 PM.
    He who listens well, speaks well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width