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?

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?

30 Sep at 15:9

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?

23 Mar at 02:44

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.

29 Sep at 13:50

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?

25 Jun at 18:57

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.

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)?

13 Nov at 15:26

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.

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?

5 Feb at 07:51

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?

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?

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...

16 Jul at 14:11

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...

19 Mar at 15:40

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?

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...

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?

24 Aug at 20:10

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?

25 Sep at 21:28

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 ...

29 Aug at 18:54

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...

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

21 Sep at 03:42

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:

17 Mar at 18:21

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.

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; }

10 Feb at 16:25

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...

25 May at 18:54

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?

3 Jun at 03:31