events

MySQL Event Scheduler on a specific time everyday

here's my query CREATE EVENT reset ON SCHEDULE AT TIMESTAMP DO UPDATE `ndic`.`students` SET `status` = '0'; how can i update status to "0" at 1 pm every day i mean what should i put instead of TIMESTAMP? ...

Difference between raising event with SomeEvent(arg) and SomeEvent.Invoke(arg)

Is there any difference in using SomeEvent(arg); and SomeEvent.Invoke(arg); If there is no significant difference, which one is the better practice? ...

GWT - Catching arrow key events in TextBox

Language: Java/GWT Platform: Ubuntu/Firefox I need to listen for arrow keys pressed in a TextBox. It seems that pressing up and down does not generate keypressevents for some reason. Instead I tried giving focus to a focus panel, handling the arrow keys and passing any other events to the TextBox, but the delegation has no effect. I've ...

ListBox.SelectedIndexChanged - can you determine if it was user intiated?

My question is similar to this: http://stackoverflow.com/questions/905447/how-to-prevent-listbox-selectedindexchanged-event, but I want to ask it a different way. Is there a simple way to determine if the 'SelectedIndexChanged' is coming from the user as opposed to initiated through code (e.g. ListBox.SelectedIndex = x)? ...

Why does handling cancel closing make my .NET application crash?

I used the answer from this thread: http://stackoverflow.com/questions/474679/capture-console-exit-c Whenever I close the console, I get a "--- has stopped working." from Windows 7. Any idea? ...

Flex - Menu Created On Button Click

I created a Button in MXMXL. On button click, I create a Menu as a child of the Button. I am using an XML datasource. The reason for creating it this way, was due to the amount of custom skinning involved. A popupmenubutton was not an option. Anyway, so my question is this: when clicking the button, the menu is displayed. However, if you...

HTMLDivBalloon - Google Earth API Question

Dear all, I have a problem using balloons in google earth. I have some markers on the map, upon clicking on a marker, a balloon popup is shown containing some data, now when I click on the close button of that balloon, the click event of the map is also triggered which is really annoying as I have a handler attached with the map click e...

Catching a click anywhere inside a gtk.Window

Hello people, consider the following python code: import gtk class MainWindow(): def __init__(self): self.window = gtk.Window() self.window.show() if __name__ == "__main__": main = MainWindow() gtk.main() I'd need to catch clicks anywhere inside this gtk.Window(). I haven't found any suitable event (I als...

Generic built-in EventArgs to hold only one property?

I have a number of EventArgs classes with only one field and an appropriate property to read it: public class SomeEventArgs : EventArgs { private readonly Foo f; public SomeEventArgs(Foo f) { this.f = f; } public Foo Foo { get { return this.f; } } } Is there any built-in, generic class t...

I check INotifyPropertyChanged but how can I make use of It ?

In this post i found INotifyPropertyChanged and i check it's example but I notice that i can do the same thing without implement INotifyPropertyChanged and more i can define my event and do the same... For example in public string CustomerName { get { return this.customerNameValue; } set { if (v...

Issue with iPhone Keyboard Next and Input Field Focus

I am building a little registration page that is going to be accessed via an iPad at a sales office as a kiosk. When I first received the page from the web design company I noticed that the way they set it up was the labels of the input fields appear inside the field (like a watermark). The watermark is cleared out once you focus on the ...

How to capture unhandled exception in C# .NETMF 4.0?

Anyone know how register an event handler for unhandled exceptions in C# .NETMF 4.0? A Google search reveals nothing. Thanks! ...

Does Oracle Support Events?

MySQL supports events where i can set up something to happen in a specified time period Eg: Update the salary's every month Eg: Update something every year Eg: Change the status of a book to "overdue" in a week Etc etc etc How do I do this in Oracle? ...

Is it possible to register one event to another without helper method in C#?

I have two same events in different classes: A.eventA B.eventB These two events: eventA and eventB are defined via the same delegate therefore the events have the same return value and parameters. Is it possible to fire A.eventA in the moment when B.eventB is fired? I can write a method: void return-value-of-delegate connect(param...

Identify link on contextmenu event in safari extension

Hi! I'm trying to build a safari extenstion (mostly for learning purposes) that creates a delicious bookmark, when the user right clicks on a link. I've watched the WWDC Creating a Safari Extension video and everything is working fine. Except that i don't have a clue how to find out if the user clicked on a link (or just some text) an...

Testing event handling with mocks using nunit

I need to create some unit tests that confirm that instance of a class responds appropriately to an event raised by another object. Passing in a mock of the 'watched' object is easy enough, but as far as I can tell, mocks in nunit don't provide a means of having the mock raise an event. I'm considering using reflection to directly invok...

Qt multiple key combo event

Hi guys, I'm using Qt 4.6 and I'd like to react to multi-key combos (e.g. Key_Q+Key_W) that are being held down. So when you hold down a key combo, the event should be called all the time, just the same way as it works with single key events. I tried to use QShortcuts and enable autorepeat for them, but that didn't work: keyCombos_.pus...

Can an anonymous delegate unsubscribe itself from an event once it has been fired?

I'm wondering what the 'best practice' is, when asking an event handler to unsubscribe its self after firing once. For context, this is my situation. A user is logged in, and is in a ready state to handle work items. They receive a work item, process it, then go back to ready again. At this point, they may want to say they're not avail...

WinForms - action after resize event

Hi, Is it possible to perform a specific action after the resize event (of the user control), for example when mouse button is released? I need to manually resize an inner control and doing it on every single firing of the event would be quite, hmm, inefficient... ...

Callbacks in Composite Application Block

Hello, below code says I can not convert from void to bool, thats ok but how can I define a callback for a fired event in CAB ? internal bool IsÖrtlichkeitFocused() { return this.WorkItem.EventTopics[EventTopicNames.IsOertlichkeitFocusChanged].Fire(this, new EventArgs<bool?>(null), this.WorkItem, PublicationScope.WorkItem); ...