FlexGrid Drag and Drop

A

Aleks1429

I am trying to do Drag and Drop on a FlexGrid control. The following code
works fine in VB 6.0, but when I try to use it in Access 2000. The code
blows up in two places. The DragIcon and Drag functions are not recognized.
Why is this? and is there a work around to this?


Private Sub MSFlexGrid1_MouseMove(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Long, ByVal Y As Long)

Dim strPath As String
strPath = "c:\Projects\proj\client.ico"

If Button = 1 Then

strDragText = MSFlexGrid1.TextMatrix(MSFlexGrid1.row,
MSFlexGrid1.col)
Set MSFlexGrid1.DragIcon = LoadPicture(strPath) ' load picture.
MSFlexGrid1.Drag
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top