tagged [events]
How can I programmatically generate keypress events in C#?
How can I programmatically generate keypress events in C#? How can I programmatically create an event that would simulate a key being pressed on the keyboard?
- Modified
- 25 Aug at 05:43
What are the differences between delegates and events?
What are the differences between delegates and events? What are the differences between delegates and an events? Don't both hold references to functions that can be executed?
How do I handle the window close event in Tkinter?
How do I handle the window close event in Tkinter? How do I handle the window close event (user clicking the 'X' button) in a Python Tkinter program?
How do I get the normal characters from a WPF KeyDown event?
How do I get the normal characters from a WPF KeyDown event? I want the ASCII characters passed by the `e.Key` property from a WPF `KeyDown` event.
Detecting ctrl+left click on winforms application
Detecting ctrl+left click on winforms application How do I detect when the users holds ctrl and left clicks on a button in a windows forms application?
Listening for variable changes in JavaScript
Listening for variable changes in JavaScript Is it possible to have an event in JS that fires when the value of a certain variable changes? JQuery is accepted.
- Modified
- 26 Aug at 11:50
How to set an acknowlegement before JVM shuts down?
How to set an acknowlegement before JVM shuts down? How to set an acknowledgement (like email or SMS) before JVM shuts down (this is on the server side, not client)?
How to find out what character key is pressed?
How to find out what character key is pressed? I would like to find out what character key is pressed in a cross-browser compatible way in pure Javascript.
- Modified
- 28 May at 21:42
should I lock 'event'?
should I lock 'event'? should I lock event in the following case: event foo; thread A: will call foo += handler; thread B: will call foo -= handler; should I lock foo?
Is there an event for an image change for a PictureBox Control?
Is there an event for an image change for a PictureBox Control? How do I know when the image of the picturebox change? Is there an event for an image change?
- Modified
- 3 Jan at 13:45
TabChanged event of TabControl in WPF
TabChanged event of TabControl in WPF I have a TabControl in WPF. I want to find an event that occurs when changing tabs. What is the name of this event?
- Modified
- 17 Nov at 18:18
Practical use of interface events
Practical use of interface events What is a good example of the power of interface events (declaring events inside interface)? Most of the times I have seen only public abstract methods inside interfa...
Defining C# events without an external delegate definition
Defining C# events without an external delegate definition just out of curiosity: is it possible to define events in C# without defining a delegate type beforhand? something like `public event (delega...
How to capture delete key press in C#?
How to capture delete key press in C#? I want to capture delete key presses and do nothing when the key is pressed. How can I do that in WPF and Windows Forms?
- Modified
- 28 Sep at 04:0
JavaScript global event mechanism
JavaScript global event mechanism I would like to catch every undefined function error thrown. Is there a global error handling facility in JavaScript? The use case is catching function calls from fla...
- Modified
- 20 Jan at 19:29
How do I call paint event?
How do I call paint event? My program draws text on its panel,but if I'd like to remove the text I have to repaint. How do I call(raise) the paint event by hand?
Windows Forms event "On Select Tab"?
Windows Forms event "On Select Tab"? I'm building a [Windows Forms](http://en.wikipedia.org/wiki/Windows_Forms) application in C#. How do I trigger code when a certain tab on a tab menu is selected?
Trigger control's event programmatically
Trigger control's event programmatically Assume that I have a WinFoms project. There is just one button (e.g. `button1`). The question is: is it possible to trigger the `ButtonClicked` event via code ...
Attaching Eventhandler with New Handler vs Directly assigning it
Attaching Eventhandler with New Handler vs Directly assigning it What is the actual difference, advantages and disadvantages, of creating a new event handler, vs assigning it directly to the event? vs
What is the syntax to declare an event in C#?
What is the syntax to declare an event in C#? In my class I want to declare an event that other classes can subscribe to. What is the correct way to declare the event? This doesn't work:
Detect changes in the DOM
Detect changes in the DOM I want to execute a function when some div or input are added to the html. Is this possible? For example, a text input is added, then the function should be called.
- Modified
- 6 Dec at 21:39
Short way to write an event?
Short way to write an event? Typically we use this code: Is there a similar shortcut like with automatic properties? Something like: ``` public event EventHandler UpdateErrorIcons { add; remove; }
What is the use of "object sender" and "EventArgs e" parameters?
What is the use of "object sender" and "EventArgs e" parameters? In case of `Page_Load`, `Init` and other page events, what is the use of these `(object sender, EventArgs e)` parameters? Examples woul...
How to implement a lock in JavaScript
How to implement a lock in JavaScript How could something equivalent to `lock` in C# be implemented in JavaScript? So, to explain what I'm thinking a simple use case is: User clicks button `B`. `B` ra...
- Modified
- 19 Jul at 11:17
Control key plus mouse wheel
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?
- Modified
- 3 Jun at 03:31