Control key plus mouse wheel.
What's the better way to handle the ctrl + mouse wheel in C#? I've figured out how to handle the MouseWheel event but how to know that the ctrl key is being pressed too? Thanks in advance. ...
What's the better way to handle the ctrl + mouse wheel in C#? I've figured out how to handle the MouseWheel event but how to know that the ctrl key is being pressed too? Thanks in advance. ...
I need to generate buttons initially based on quite a processor and disk intensive search. Each button will represent a selection and trigger a postback. My issue is that the postback does not trigger the command b_Command. I guess because the original buttons have not been re-created. I cannot affort to execute the original search i...
I have some elements on a page which are draggable. These same elements have a click event which navigates to another page. I'm trying to determine the best way of preventing the click event from firing if the user is dragging but still allow the click event if not dragging. Anyone have any ideas of the best way to accomplish this? ...
I'm trying to detect when the onresize event ends in a browser. If I use the "onresize" event, in Firefox it seems to be fired only once, after the resize event ends, which is exactly what I want. But if I try in IE, the "onresize" event gets fired many times during the resize. I also try the "onresizeend" event, advertised in MSDN. But...
Is it possible to set up a Grid or other container control to be sort of an event dam? So that when any events, specifically a left click, that start within it are working their way up that they stop at that control and go no further? ...
Is there a client event that I can use for when a DropDownList's data has been loaded/bound onto the control? I need to trigger event on their side when this happens. ...
hello, I have an asp.net image button and I want to cancel the click event incase he fails the client side validation... how do I do that? ...
I'm using a VB6 PictureBox on my User Control. I set the PictureBox's picture, I set the BorderStyle to 0, and I set the BackColor to the User Control's BackColor. The idea is that I want a "floating" icon. However, I want that icon to appear clickable when the mouse hovers over it. Two questions: Which events do I use? MouseMov...
Something that confuses me, but has never caused any problems... the recommended way to dispatch an event is as follows: public event EventHandler SomeEvent; ... { .... if(SomeEvent!=null)SomeEvent(); } In a multi-threaded environment, how does this code guarantee that another thread will not alter the invocation list of SomeE...
hey all, I'm writing a WPF app whereby usercontrols are being dynamically created programmatically in response to an event. The main window canvas has a grid, and i'm adding new columndefs and rowdefs, which contain the new user controls. I need these user controls to keep track of where the mouse is, so that they can respond to event...
Hi all , I am coding a basic traffic light control which will be displayed on the monitor. In that i need an external interrupt (event ) to happen and change the state of the current traffic light. I am trying to do it without any board or external peripheral. Now I think i have the following choices . tell me which is the best. 1. One ...
Should I use the change or textInput event to capture user input on a TextInput control? Why? ...
I have a form in VB6 with two combo boxes (cboCustomer and cboItemNumber). When someone selects a value from cboCustomer, I want to populate cboItemNumber with a list of item numbers relevent to the customer selected. What event does VB6 offer that I can use? I've tried _Change and _LostFocus and neither are doing what I need. I find it ...
I have already tried PreRenderComplete and unload is too late ...
What is the best way to create a 'global event' in flex/actionscript - preferably using a static class? I want to raise an event to indicate that a stylesheet is loaded in order to show components that require that stylesheet. So I want each portion of the application that requires a style from the stylesheet to listen to an event telli...
As the title really, I'm in one part of my code and I would like to invoke any methods that have been added to the Button.Click handler. How can I do this? ...
This seems like a very simple and a very common problem. The simplest example I can think of is this. The form has 5 checkboxes with a "check all/check none" checkbox above them. When a user selects the check all checkbox I toggle the states of the "children" - obviously I don't want to fire the check events of all the children until I a...
Hi Guys, I need some help regarding algorithm for randomness. So Problem is. There are 50 events going to happen in 8 hours duration. Events can happen at random times. Now it means in each second there is a chance of event happening is 50/(8*60*60)= .001736. How can I do this with random generation algorithm? I can get random number ...
Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is handled by the controller. I bind some onclick events to a button, but I find that they sometimes execute in an order I did not expect. Is there a way to ensure ord...
For both .NET Winforms and Windows Presentation Foundation, if I have a text box that the user has just entered text into, and a button, if the user clicks the button the "LostFocus" event fires before the button click event fires. However if the user uses a keyboard shortcut for the button (e.g. Button's text is "&Button" or "_Button" ...