473,385 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

wierd event behaviour (VB)

Other than buttons, most controls in VB.NET have their
MouseDown event run slow (and I believe this also happened
in VB 6.0). The MouseUp event can keep up with the rate at
which a mouse button is let up, while the MouseDown event
runs about twice per second, max... this also impacts the
Click event (since it works with mouse down), so it also
runs at about twice per second max. This doesn't happen
for button controls, but with other controls like
labels/panels/Pictureboxes/Form surface/UserControls
this "lag" occurs. Since I am trying to make a custom
button with a user control this is going to be a problem.
Is there a way to fix this? Is anyone else getting this
lag?

I check if this happens in C# but it does not. I figure
it's the way the mouse down event is executed by VB. If
this can't be fixed I'll just switch over to C#, no biggy.

Thanks
Jul 21 '05 #1
2 1867
Cor
Hi Ivan,

There is a possibility you have some errors in your code, because C# and
VB.net should make the same ILS code from it.

If you did not do it, set option strict on in your VB.net programma, you
have maybe some late bindings in your own build VB.net controls and that
makes it than slow.

Just an idea

Cor
Other than buttons, most controls in VB.NET have their
MouseDown event run slow (and I believe this also happened
in VB 6.0). The MouseUp event can keep up with the rate at
which a mouse button is let up, while the MouseDown event
runs about twice per second, max... this also impacts the
Click event (since it works with mouse down), so it also
runs at about twice per second max. This doesn't happen
for button controls, but with other controls like
labels/panels/Pictureboxes/Form surface/UserControls
this "lag" occurs. Since I am trying to make a custom
button with a user control this is going to be a problem.
Is there a way to fix this? Is anyone else getting this
lag?

I check if this happens in C# but it does not. I figure
it's the way the mouse down event is executed by VB. If
this can't be fixed I'll just switch over to C#, no biggy.

Jul 21 '05 #2
Hi,

I think the speed that these events fire has something to
do with the speed you have your mouse double click set in
control panel..
Might be worth having a look at this..

Cheers
-----Original Message-----
Other than buttons, most controls in VB.NET have their
MouseDown event run slow (and I believe this also happenedin VB 6.0). The MouseUp event can keep up with the rate atwhich a mouse button is let up, while the MouseDown eventruns about twice per second, max... this also impacts theClick event (since it works with mouse down), so it also
runs at about twice per second max. This doesn't happen
for button controls, but with other controls like
labels/panels/Pictureboxes/Form surface/UserControls
this "lag" occurs. Since I am trying to make a custom
button with a user control this is going to be a problem.Is there a way to fix this? Is anyone else getting this
lag?

I check if this happens in C# but it does not. I figure
it's the way the mouse down event is executed by VB. If
this can't be fixed I'll just switch over to C#, no biggy.
Thanks
.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vaddina Prakash Rao | last post by:
Hi all .. I describe here a wierd behaviour .. i dont understand why ... This could be very stupid aswell .. so please bear me .. I have been writing a program to accept multiple parameters and...
1
by: paul reed | last post by:
Hello, I am having some weird behavior between two machines...one which is running the 1.1 framework and one which is running 1.0. After opening a child form from a parent...I update the...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
7
by: Shane Bishop | last post by:
I've been fighting with the Page_Load event firing twice. I looked through this user group and saw several other people having similar problems. There were various reasons for it:...
17
by: Spam Trap | last post by:
I am upgrading from VB6 where I had access to a treeview NodeClick event (see below)... but now VB.NET does not have this any more. Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)...
14
by: SStory | last post by:
I am trying to make a splash screen for my vb.net app. It is an mdi app. including the splash code produces wierd results. not inluding makes things fine. Also have tried loading the splash...
0
by: Tom | last post by:
Here is a very strange problem that I am stumped by. I have a rather large application written in VB.NET (of course) using Framework 1.1. As you know, with an MDI application you can have multiple...
2
by: Ivan D | last post by:
Other than buttons, most controls in VB.NET have their MouseDown event run slow (and I believe this also happened in VB 6.0). The MouseUp event can keep up with the rate at which a mouse button is...
2
by: CSGeach | last post by:
Hello all In VB6, if you referred to a property or a some property of a control of an unloaded form, it caused a form_load, and fired the Form_Load event. I have a lot of code that depends on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.