By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

Toolbar stops catching "Click" event after some time.

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
"Sakharam Phapale" <sp******@annetsite.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=multithreading&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

P: n/a
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_Leave" 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**************@TK2MSFTNGP15.phx.gbl...
"Sakharam Phapale" <sp******@annetsite.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=multithreading&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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.