Click here to Skip to main content
15,886,026 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionOutOfMemoryException in VB.Net Pin
DTGeek19-Jul-19 6:48
DTGeek19-Jul-19 6:48 
AnswerRe: OutOfMemoryException in VB.Net Pin
Gerry Schmitz19-Jul-19 12:06
mveGerry Schmitz19-Jul-19 12:06 
GeneralRe: OutOfMemoryException in VB.Net Pin
DTGeek23-Jul-19 5:14
DTGeek23-Jul-19 5:14 
GeneralRe: OutOfMemoryException in VB.Net Pin
DTGeek30-Jul-19 4:59
DTGeek30-Jul-19 4:59 
Questioncontextmenu when 2 files are selected Pin
JR21218-Jul-19 1:58
JR21218-Jul-19 1:58 
AnswerRe: contextmenu when 2 files are selected Pin
Eddy Vluggen23-Jul-19 0:35
professionalEddy Vluggen23-Jul-19 0:35 
GeneralRe: contextmenu when 2 files are selected Pin
JR21223-Jul-19 4:30
JR21223-Jul-19 4:30 
QuestionProblem with treeview drag and drop Pin
mo149212-Jul-19 9:02
mo149212-Jul-19 9:02 
I have a TreeView control within the main form. The main form processes the normal
drag/drop event processing. The drag/drop operation performs successfully except for this
little problem.

When I do a DoDragDrop() operation within the TreeView, when dragging the mouse 'within' the
TreeView, the main form receives drag drop events. I only want the 'main form' events when the mouse is within the main form client area. What have I missed?
Thanks

Private Sub FolderTree_Drag(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles MyBase.ItemDrag

If e.Button = Windows.Forms.MouseButtons.Left Then
Dim node As TreeNode = CType(e.Item, TreeNode)
Dim dataObject As New DataObject()
Dim sFiles As New StringCollection
sFiles.Add(node.FullPath)

dataObject.SetData(ConstDragDropFormat, sFiles)

' Invoke the drag and drop operation
DoDragDrop(dataObject, DragDropEffects.Copy)
End If
End Sub


I have tried this code in the TreeView but it does not help.

Private Sub TreeView_DragEnter(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
e.Effect = DragDropEffects.None
End Sub

Private Sub TreeView_DragDrop(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragDrop
e.Effect = DragDropEffects.None
End Sub

Private Sub TreeView_DragOver(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragOver
e.Effect = DragDropEffects.None
End Sub
QuestionHow to commnuicated between VBS and C# Pin
Member 145249558-Jul-19 21:48
Member 145249558-Jul-19 21:48 
GeneralRe: How to commnuicated between VBS and C# Pin
Ralf Meier8-Jul-19 23:56
mveRalf Meier8-Jul-19 23:56 
AnswerRe: How to commnuicated between VBS and C# Pin
Dave Kreskowiak9-Jul-19 6:19
mveDave Kreskowiak9-Jul-19 6:19 
GeneralRe: How to commnuicated between VBS and C# Pin
Member 145249559-Jul-19 15:20
Member 145249559-Jul-19 15:20 
GeneralRe: How to commnuicated between VBS and C# Pin
Dave Kreskowiak10-Jul-19 5:04
mveDave Kreskowiak10-Jul-19 5:04 
Questionhow to deal with this error Pin
Member 145002187-Jul-19 22:09
Member 145002187-Jul-19 22:09 
NewsRe: how to deal with this error Pin
CHill608-Jul-19 1:45
mveCHill608-Jul-19 1:45 
AnswerRe: how to deal with this error Pin
Dave Kreskowiak8-Jul-19 2:11
mveDave Kreskowiak8-Jul-19 2:11 
Questionemail a attached file vb.net Pin
Member 145002187-Jul-19 21:00
Member 145002187-Jul-19 21:00 
AnswerRe: email a attached file vb.net Pin
Chris Quinn8-Jul-19 0:58
Chris Quinn8-Jul-19 0:58 
GeneralRe: email a attached file vb.net Pin
Member 145002188-Jul-19 23:15
Member 145002188-Jul-19 23:15 
AnswerRe: email a attached file vb.net Pin
Dave Kreskowiak8-Jul-19 2:12
mveDave Kreskowiak8-Jul-19 2:12 
QuestionUsing a custom renderer for toolstrip, but only first button is properly painted Pin
Alan Burkhart5-Jul-19 5:53
Alan Burkhart5-Jul-19 5:53 
QuestionMDI Child form background transparent Pin
smdoss2-Jul-19 4:01
smdoss2-Jul-19 4:01 
SuggestionRe: MDI Child form background transparent Pin
Maciej Los2-Jul-19 5:37
mveMaciej Los2-Jul-19 5:37 
RantRe: MDI Child form background transparent Pin
Richard Deeming2-Jul-19 5:38
mveRichard Deeming2-Jul-19 5:38 
QuestionInput string was not in a correct format. error message Pin
IC0D330-Jun-19 7:47
IC0D330-Jun-19 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.