events

Is the event fired, when previous handler didn't finish?

Does SqlDependency (for example) fires the OnChange event, when the invocation of previous event handler didn't finish? (Assume that OnDependencyChange method is very time consuming) What exactly happens? SqlDependency dependency=new SqlDependency(command); // Subscribe to the SqlDependency event. dependency.OnChange += new OnChangeEv...

Is it possible to expose events of a member object of a class to the outside in .NET?

Say I have a User Control in ASP.NET that contains a button: public class MyUserControl : UserControl { private Button btnSave = new Button(); } I can expose any property of the button to the outside by making a property that points at the button: public string SaveButtonText { get { return btnSave.Text; } set { btnSave...

.NET events to C++ COM client

Adam Nathan in his book ".NET and COM" demonstrates how to hook up events from a C# library to a COM client, but the client code is shown only with a VB sample--I need C++. The C# client implements the Phone class: [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface IPhoneEvents { [Dispid(1)] void Ring(); } publi...

How to create a dynamic calendar with MySQL, PHP etc.

Hi, I am looking to create a calendar based on some pre-existing event entries. I currently have a event creation system using MySQL and PHP. However, I can only list these in an agenda format, sorted by soonest event. Is there some existing method of creating a monthly calendar based on events in a database? I have little coding expe...

How do you attach a click event to a jquery object created programmatically?

I'm writing some jquery to programmatically build a list of links and I'd like to attach a click() event to each link. I'm having trouble getting the click function to fire. Can anyone point me in the right direction on how to do this? This is what I have so far: <!doctype html> <html> <head> <title></title> <script type="text/javascr...

Javascript : [ onmousover ] and [ onmouseout ] event

The General Problem So imagine a dropdown menu for example and when you mouse over on a link the dropdown is popping up. But as you can read on the article below, there are problems with it, when you mouse over on a link(for some browsers everything inside the element) the box is dissapearing. The problem comes from event bubbling. ...

Text Change Event in ASP.net fired two times

It asp.net textbox text change fired two times when i press enter key if i press tab key then fired one times. The textbox in a update panel. ...

Android handle all input key an touch event

How handle all input key an touch event incoming to my Android application? Is any one place where I can catch all this events? ...

How to remove event From Iphone Calendar using EKEventStore?

EKEventStore *eventStore = [[EKEventStore alloc] init]; EKEvent *event = [EKEvent eventWithEventStore:eventStore]; event.title = appDelegate.title1; NSLog(@"%@",event.title); event.startDate = appDelegate.currentDateName; NSLog(@"%@",event.startDate); event.endDate = appDelegate.alertTime; [event setCalendar:[eventStore...

I unable to access dom.

I'm using jquery $.ajax to load my table row data like <table id='row-data'> <tr><td>1001</td></tr> <tr><td>1322</td></tr> <tr><td>1551</td></tr> <tr><td>2341</td></tr> </table> in above code i load all with $.ajax but after load data when i fire any event on then it's not working so how to possible to access these r...

Reflection and private delegate fields of events in c#

I'm probably doing something silly, but here it goes. I'm trying to get the FieldInfo from a public event via reflection. Check this function: public void PlotAllFields(Type type) { BindingFlags all = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public; FieldInfo[] fields = type.GetFields(all); Con...

How to raise Onload/OnUnload event from FrameworkElement for unit testing purposes?

As you can see here, I can't use reflection to get the multicast delegates of the private fields behind these FrameworkElement events because they aren't field-like. So how to do it? ...

onResult HTTPService

I have a HTTPService: <mx:HTTPService id="scoreService" url="http://" method="POST" result="onResult(event)"> <s:request xmlns=""> <name>{..}</name> <score>{...}</score> </s:request> </mx:HTTPService> And a script for (event): private function onResult(e:ResultEvent):void { ...

JQuery and Rails 3 ajax:failure callback

I'm using Rails 3 and JQuery 1.4.2 and am trying to bind to the ajax:failure callback on a given remote form submission. The callback works fine, however, the xhr variable that's passed back seems to lose the responseText attribute somehow. Here's what my code looks like: _form.html.haml = form_for(object, :remote => true) do |f| = ...

When do you use If (!IsPostBack) in ASP.NET?

The more I use ASP.NET, the more if (!IsPostBack) {} seems pointless... First example: For example, I just Googled an issue, they said use this as part of the solution: if (!Page.IsPostBack) { Page.LoadComplete += new EventHandler(Page_LoadComplete); } Which does exactly as coded, LoadComplete will only fire on the first load. A...

Mark-up Button Event Not Firing in ASP.NET (Details inside)

There is nothing fancy with the mark-up: <hr /> Add... <asp:Button ID="buttonTextSegment" runat="server" Text="Text Segment" onclick="buttonTextSegment_Click" /> <hr /> Or the code: protected void buttonTextSegment_Click(object sender, EventArgs e) { //never is triggered } My guess is that it is due to the hierarchy/load or...

Detect if user presses button on a Wacom tablet

Hi, I was wondering if it is possible in Cocoa/Carbon to detect whether a key combination (e. g. Ctrl + Z) comes from a Wacom button or the keyboard itself. Thanks best xonic ...

ASP.NET Life-cycle Dichotomy: Dynamically Added Controls and Events

The situation: I have user controls with buttons that have hooked events. Controls with events need to be initialized in Page_Load or earlier. I wish to spawn these user controls dynamically by clicking an Add button. It is important to remember that events, such as click events, are not fired until just before Page_LoadComplete. Br...

button click event call on page load

hi expert i am new in asp.net development, i have problem when page load fired a click event of button is automatically fired will you please tell me why it is happening and what is the solutions for that. lets protected void butSubmit_Click(object sender, EventArgs e) { if(butSubmit.Text.ToString().Equals("Submit")) ...

as3 events dispatching and listening

I want to have a main logic class that listens for dispatched events from an assortment of other classes. for instance: i have a parent Map class that contains X instances of a State class. When the user clicks on a State class, i want to dispatch an event CLICKED along with the name of the state. now this Logic class will see this ne...