Unfortunately I have been trying to avoid just that. The nice thing about a programatically controllable (fictional) tooltip is that it can act normally as a tooltip, but also as a help function when necessary. Thanks though.
That only allows the hover to work or not. If false, no tooltip is shown whenever hovering over whatever has a tooltip (even tried it to make sure). Thanks though, any other suggestions?
Is there a way to show/hide all of the tooltips on a form programatically? I want to use them as sort of a help function by creating a button that toggles their view. I have found ways to show individual tooltips momentarily or allow the hover to work even if the form is not the focused form...
Good advice, thanks for all the tips/info. I'll keep digging and post back *when* (staying positive here and staying away from "if") I find the root of the problem. Thanks again.
joe
Sorry, the synchronized hashtable is for the case of handling multiple writers. The doc's state that a normal hashtable can handle multiple readers with a single writer just fine.
I'm stuck on static objects because of two reasons:
1. Ease of use. All I have to do to get data out of the static...
Whoa, there's a lot going on in that sample. Thanks for being so thorough. I'll begin reading through it and try to understand it.
However, I am curious if you can tell me what the problem with the below scenario:
Thread 1: Read from hardware resource and place results in static hash table...
By the way, there are two different scenarios being used. One is the case I mentioned above with a static class and a bunch of static methods. The 2nd uses a static reference to an instantiated object. Both are causing me trouble, but it is actually the 2nd that produces the protected memory...
Good questions/comments. The reason I need to share info across states is that I have few different hardware resources attached to a pc (usb and pci). There are two threads which update the UI so the user can see what is going on and then there is also a thread which does the actual work and...
Jason:
Please question away, I'd definitely appreciate the advice. I've heard that static classes/members should be restricted to functions that do not carry state, but it also seems like a very straight forward way of sharing data across multiple threads.
Is there a better way of doing this...
If changed to a function belonging to an instance object, what's the best way of allowing access to multiple threads? Won't it still have the same issue of the being re-entered on the same thread with asynchronous events?
Out of curiosity, can you tell me if my method of sharing data is totally...
Sorry, but I'm a little confused as to where you got the singleton from. I have some idea of how a singleton works, but will it help in my case?
I have a function which I want to prevent re-entrance from multiple threads and also the same thread. The lock model works across threads, but not...
I am looking for a way to prevent reentrance on the same thread. The problem is that I have a static function that is called from a form in a couple of ways (button, timer), and I have been using a lock to prevent reentrance from other threads and that portion seems to be working fine. However...
Ahh, gotcha. Well, I'll look more into PostSharp and Castle Windsor then, maybe even ms's unity package. I'm hoping they are not too invasive or time consuming to implement.
I didn't realize that log4net could be used as an interceptor so I'll do a little more digging into it. Actually, I didn't know there was such thing as an interceptor until an hour or two ago when I happened across PostSharp.
Thanks for the tip on log4net, I've used it before. I'm not using it now, but I do have some logging. I guess it's time to change it from "some" to "a lot".
Hello,
My app has this funny habit of crashing and burning without the slightest hint of what happened. One moment it is running along (in debug mode) without issue, and then all of a sudden it just disappears. There were no warnings, pop-ups, exceptions caught, etc. I am curious of there are...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.