473,770 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1891
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
1859
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 print them out .. similar to printf (please Dont ask me why this, when we already have printf .. Because i have plans add more power to this function). Any way i print the code here,...
1
6809
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 database then call the __doPostBack function of the window.opener. This has been working like a charm for the last several months. Our ISP where we run the .NET app recently upgraded to 1.1 of the framework. When I run my app at the ISP...the...
3
3644
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 page, 2) Breakpoint in the Page_Load, 3) debug the web page and click the submit button, 4) "step into" under debug several times, 5) The debugger does not stop at any of the statements in the click event handler. A breakpoint is needed in each...
7
2348
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: AutoEventWireup="true" instead of AutoEventWireup="false" Spyware software And having your events all wired wrong I had done everything to my machine, stripped it down to just have ..NET on it and I was still having this problem until...
17
9118
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) ' VB6 code here. End Sub The VB.NET way seems to be inspect the SelectedNode property within the TreeView's Click event... however this is extreamly buggy, and actually fails under some very simple circumstances, telling me that one node is
14
6697
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 form from: * load event of main mdi parent
0
1335
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 windows running in your MDI parent window. Normally, you can switch to another window by clicking anywhere on that window. I.E. I have two windows open in my MDI application: Window 2 is the active window, and is partially covering up Window 1. I...
2
247
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 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...
2
7029
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 this behaviour: thus in order to achieve some initialization of my form , I have a general purpose routine as follows Public Function ShowForm(ByRef FormToShow As Object, ByRef ShowModal As Boolean, ByRef FormTag As String) As Boolean '...
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.