473,405 Members | 2,404 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,405 software developers and data experts.

Toolbar stops catching "Click" event after some time.

Hi All,

I am working on a project, where maximum operations carried out on Files and
multi-dimensional arrays. Since array data is huge application takes too
much memory.

My problem is, after few operations, toolbar on MDI from doesn't catch
"Click" event.
But it catch all other events like mouse leave etc.

I am not been able to find out the reason.

Please help me by giving some thoughts.

Thanks in advance,

Sakharam Phapale


Nov 16 '05 #1
2 1563
hi Sasharam
Does it work initially or it doesn't catch the event at all. ( mostly you
tried debuging to see if the handler is called). would you post the event
handler you have
Mohamed Mahfouz

Nov 16 '05 #2
Hi Mohamed,

Actually my code is in VB.

I am using Toolbar in which there are few buttons (Cut, Copy, Paste, Delete,
etc..)
After starting the application click events works perfectly but after some
time click event doesn't get fired.
But still other event like "ToolBar1_MouseEnter" works fine.
Since it is in VB you don't need to write code to add event handler like in
C#.
To acheive the same I need to add it in procedure itself.

Private Sub Toolbar1_ButtonClick(ByVal sender as Object, ByVal e as
ToolBarButtonClickEventArgs) Handles Toolbar1.ButtonClick

Above code gets generated at design time.

For run time I am using following alternate code

Dim ei As EventInfo
Dim myType As Type = GetType(ToolBar)
ei = myType.GetEvent("ButtonClick")
ei.AddEventHandler(ToolBar1, New ToolBarButtonClickEventHandler(AddressOf
ToolBar1_ButtonClick))

I think it is related to event handler which gets remove automatically after
some time.
But I am not sure how to trace that.

Thanks and Regards,
Sakharam Phapale
"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:$L**************@TK2MSFTNGXA02.phx.gbl...
hi Sasharam
Does it work initially or it doesn't catch the event at all. ( mostly you
tried debuging to see if the handler is called). would you post the event
handler you have
Mohamed Mahfouz

Nov 16 '05 #3

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

Similar topics

5
by: Al Christoph | last post by:
I have a program that mixes wizard like behavior with random access to the various dialogs in the wizard. I do this by having each step map to a toolstripmenuitem. Users can randomly choose the...
3
by: DEK | last post by:
Stepping through my code the click eventhandler code executes through a few times before it finally stops. Even though I only click the button once, is there a reason for this, I have a few if...
0
by: raul | last post by:
hello, i have a problem with the click event in a toolbar control. When i execute my form app., all works ok, but after working for a time, suddenly, i loose the click event, and i can't detect...
1
by: kimmie | last post by:
I am using buttons on a toolbar and I want to use the buttons as toggles. When I click the button the first time I want my picture box to display by setting the picture box to visible. But I need...
3
by: Sakharam Phapale | last post by:
Hi All, I am working on a project, where maximum operations carried out on Files and multi-dimensional arrays. Since array data is huge application takes too much memory. My problem is, after...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
2
by: Kjell Kristiansson | last post by:
I have not been able to figure out how to catch the click event from a button that is added dynamically to a table. In priciple the process is as follows: When I first create the page I analyse...
2
by: Serious_Practitioner | last post by:
Good day, and thank you in advance for any assistance. I'm having trouble with something that I'm trying for the first time. Using Access 2000 - I want to run a function either on the click of a...
4
by: LyzH | last post by:
Someone else had a question on how to emulate a mouse click. I tried posting in that thread but I have something of a twist on this problem and I'm really in trouble here! If I don't get help...
1
by: adrianm4380 | last post by:
Is it possible to call the on click event procedure for a command button on a custom toolbar? I have a menu of buttons that open various forms in varying ways that are all controlled in the on...
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: 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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...

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.