Wrox Programmer Forums
|
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2008, 01:52 PM
Authorized User
 
Join Date: Jun 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default DoDragDrop holds system

Hi,

In an application I let the user drag one item to another with the DoDragdrop-method. In the same form a timer is running (in his own thread) wich is displaying a time in a textbox.

When I hold the mouse down on the sourceitem to start the drag'n'drop action, the clock, visual in the textbox, seems to stop updating the form or the form isn't painted during the drag'n'drop action.

This only happens if I hold my mouse still after a mousedownevent on the sourceitem. If I once moved the mouse while holding the mousebutton down the clock updates again and keeps running.

Anybody knows what's going on here? And more important: what can I do to avoid this update-mute?

Thanx in advance!

Here's my code on the sourcecontrol:

Private Sub SourceLabel_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Sourcelabel.MouseDown
        DoDragDrop("datastring or whatever", DragDropEffects.Copy)
End Sub





 
Old August 7th, 2008, 05:12 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I'm not sure, but perhaps using MouseMove, instead, would be helpful.

Try using the Code button for posting code. It puts a couple tags in your post, the first of which is [ code] and the last of which is [ /code] (but both without those initial spaces). A line feed will be generated befor the first, and after the last. Everything between those tags will post exactly as you type it, using a non-proportional typeface. (Much nicer than boldface...) So "THIS IS A[ code]TEST[ /code]OF TAGS." does:
THIS IS A
Code:
TEST
OF TAGS. (note the serifs...)
 
Old August 13th, 2008, 04:46 AM
Authorized User
 
Join Date: Jun 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx for your advise. In the future I will use the code button instead.
Good idea about puting the dodragdrop-method in the mousemove-event. Painfully that also holds the system, so I continue my search.

 
Old August 25th, 2008, 03:18 PM
Authorized User
 
Join Date: Jun 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

122 views and nobody who knows the solution?
 
Old August 27th, 2008, 01:56 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

These are the types of issues that are really hard to find info on. Even finding info on interacting with files is often hard to find info on. All the books teach you how to do just one method to solve the one problem the writer has chosen as a test case. Very frustrating.

There are tools that can allow you to monitor all the activity going on in your computer (like ProcMon Process Monitor), that allows you to see every windows message that takes plce from the time you hit the start button, to when you hit the stop button. And believe me, it numbers in the thousands per second, often!

But if you want to run a program like that, and slog through the resultant snagging of what's going on, sometimes you can find an event that is triggering a few thousand times, and therefrom reason what might overcome that. But it really is a detective task...

Regmon and procmon are free downloads. I think there is one that combines the two (sysmon, maybe?).

If you figure this out, then [u]you</u>’ll be the expert on this topic!
 
Old August 31st, 2008, 04:33 PM
Authorized User
 
Join Date: Jun 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx. You're right






Similar Threads
Thread Thread Starter Forum Replies Last Post
system.stackoverflowexception in system.windows.fo scheidel21 Pro VB.NET 2002/2003 2 May 18th, 2007 12:40 AM
Insert System date and System Time -Form _TextBox cnkumar74 VB How-To 14 February 14th, 2007 10:52 AM
Casting System::Object __gc * to System.Double[] nepsat Visual C++ 3 November 19th, 2005 12:51 PM
what data type in vb.net holds more thab 256 bits Hisham VB.NET 2002/2003 Basics 1 November 8th, 2004 05:35 AM
can collection object holds another arrar PurpleHaze VS.NET 2002/2003 0 July 10th, 2003 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.