473,657 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 21 '05 #1
3 1228
"Sakharam Phapale" <sp******@annet site.com> schrieb:
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.


The operation will "block" your main UI thread and prevent it from
processing events. You can put the operation into a separate thread to keep
the UI responding:

Multithreading in Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=multithread ing&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Hi Herfried,

Thanks for your reply.

I am not clicking on the toolbar, because it is disabled when operations
been carried out.
At the start it works cleanly, but after some time toolbar click event
handler doesn't work, means you can see the buttons are clicking but code
written in event procedure doesn't get executed.
At the same time other toolbar events like "Mouse_Leav e" just works fine.
Is there any problem with click event handler?
I will try by adding eventhandler at runtime, when such problem occurs.

I will apreciate any other suggestion.
Thanks and regads,
Sakharam Phapale
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:up******** ******@TK2MSFTN GP15.phx.gbl...
"Sakharam Phapale" <sp******@annet site.com> schrieb:
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.
The operation will "block" your main UI thread and prevent it from
processing events. You can put the operation into a separate thread to

keep the UI responding:

Multithreading in Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=multithread ing&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

Hi,
I have come across with the same situation.
If any solution has been worked out please help me with the same.
Thanks and Regards,
Yog

--
yogipa
-----------------------------------------------------------------------
yogipat's Profile: http://www.msusenet.com/member.php?userid=67
View this thread: http://www.msusenet.com/t-223068

Nov 21 '05 #4

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

Similar topics

5
1801
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 menu item and get the corresponding dialog. Alternatively at the completion of each dialog, I can "click" on the menu item and cause the appropriate dialog to come up. It works rather well but the way I've done it is a horrible kludge. I even left...
0
1140
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 which is the cause of this behavior. what do you know about this ? best regards,
2
1577
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 few operations, toolbar on MDI from doesn't catch "Click" event. But it catch all other events like mouse leave etc.
1
1705
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 to add a button click event that handles the second click to set the picture box to invisible. How do I do that? This is what I am thinking will help make it toggle. I am new to VB....does this make sense or is there a better way to handle this?
41
4288
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 on some initialization information obtained elsewhere. Basically, I'm going to create my own dynamic toolbar where the toolbarbuttons can change. I'm not using the VB toolbar because of limitations in changing things like backcolor (I can't get...
2
1318
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 data and if appropriate: - add one or more row to a table in the webform - add cells to the rows - add a button (myButton) where the user can change some settings. - enable/disable some other buttons to the form This is all done in a function...
2
4844
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 button or on leaving a text box. For the immediate task, either will work as well as the other. I think. I'm just at the beginning of this, and the form has two text boxes - Text0 and Text1. The user input to Text0 is a dollar amount, in...
4
1837
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 soon, I'm going to fail this class and the class is already dragging down my GPA. I'm taking an introductory visual basic class with an advanced visual basic book and assignments (the department dropped the prerequisite and the class needs one....
1
3234
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 click event. I would like to be able to reference these events in a custom toolbar instead of creating macros. If I can create code to open a form in VBA why can't I use that code to open the form from the toolbar? Can someone explain to me how this...
0
8316
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8509
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8610
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
7345
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
6174
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
4168
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...
1
2735
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
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
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.