events

How to connect Calendar control with existing Membership system in ASP.NET?

Hi, I have a built-in Membership system in ASP.NET and I handle member data with Profiles in web.config. I would like to add an Event Calendar where a member could add notes to any day he wants but I don't know how to integrate the Calendar control with the existing Membership system. I can't query a database because I don't handle me...

Capture Youtube player event in GWT app

I'm building an app using GWT with an embedded Youtube player. I intend to do some stuff when the video ends. How do I capture that event? By the way, I'm using gwt2swf to embed the player. Reference: gwt2swf Youtube player events ...

.NET Web Browser Control - SaveAs Event

Does anybody know if you can access the SaevFileDialog control that's used by the WebBrowser control? Once somebody saves the webpage being displayed I need to catch where the files have been created; however I can't seem to find any events/members that allow me access to that information. ...

How to avoid internet explorer first button selection?

I have one form with several text fields and one button. When i enter one of the text fields, the submit button become highlighted and if i press enter while typing, the button is pressed, so i got an unexpecte behaviour because my page is submitted. Firefox doesn't act such a way. Is there some attribute or configuration to avoid this u...

Forward a KeyPress-event

I have a TextBox and would like to forward a KeyPress-event from another Form. So far I have my Form: private readonly Action<KeyPressEventArgs> m_KeyPress; public KeyboardForm( Action<KeyPressEventArgs> keyPress ) { m_KeyPress = keyPress; } protected override void OnKeyPress( KeyPressEventArgs e ) { m_KeyPress( e ); base.OnKey...

ASP.NET Composite Control raise event to parent form

Say I have a composite control in ASP.NET (C#) which includes a drop down list. I need to be able to bubble the event back to the parent form so that other code can be executed based on its SelectedItem. How do I expose the OnSelectedItemChanged event to the application? Do I need to create my own delegate and raise it when the intern...

Asp.NET Server Control Postback

I have a Control I want to create. Here's a simple example of what I was to accomplish. I want the control to contain a button. Button b = new Button(); b.Text = "Test"; b.Click += new EventHandler(b_Click); this.Controls.Add(b); Now, the control renders fine, the button shows up on the page. The heart of the problem I'm having is...

connecting managed event source to an unmanaged event sink

I'm trying to write a managed library in C# that will act as an event source for an existing C++ event sink. The problem I'm having is that when the unmanaged app calls AtlAdvise to get the connection point map for my library it is getting the error "0x80040200" (CONNECT_E_NOCONNECTION) - There are a couple of MSDN articles about that er...

Weak events in .NET?

If object A listens to an event from object B, object B will keep object A alive. Is there a standard implementation of weak events that would prevent this? I know WPF has some mechanism but I am looking for something not tied to WPF. I am guessing the solution should use weak references somewhere. ...

Graphical web library which allows to click "arcs" on diagrams (see the screenshot)

I need a JavaScript library, or flash as well, which allows to connect events to "click" over "arcs" in graphics, see this picture: I've implemented my graphic through the JS-Graphs library but I can only intercept the "click" event on "nodes", not on "arcs". Can anybody help me?? Thanks. ...

Java's equivalent to .Net's AutoResetEvent?

What should I use to get semantics equivalent to AutoResetEvent in Java? (See this question for ManualResetEvent). ...

Event system in Python

What event system for Python do you use? I'm already aware of pydispatcher, but I was wondering what else can be found, or is commonly used? I'm not interested in event managers that are part of large frameworks, I'd rather use a small bare-bones solution that I can easily extend. ...

Capture Right Click on HTML DIV

I am trying to paint cell on a html page, where each cell is a DIV, I need to be able to capture right click event on any of these cells, How can I do that? <script> function fn(event) { alert('hello'+event.button); } </script> <div id="cell01" class="" onclick="fn(event);" style="left: 1471px; width: 24px; ...

C# - Events and Interfaces

Hi Guys, I have an interface with several events I have base class implementing the interface I have third class extending the base class (let's call it theConcreteClass) problem: when i do something like: IMyInterface i = new theConcreteClass() and then i subscribe to any of the events (i.someEvent+=some_handler;) the event handler...

How do I get rid of "[some event] never used" compiler warnings in VS2008?

For example, I get this compiler warning, "The event 'Company.SomeControl.SearchClick' is never used." But I know that it's used because commenting it out throws me like 20 new warnings of XAML pages that are trying to use this event! What gives? Is there a trick to get rid of this warning? ...

Good tutorial for Java events?

I'm looking for a good tutorial into Java events. Something in the core framework that allows simple event semantics (similar to C#'s events). Googling for Java events gives a page from Swing UI documentation and some other page from 2002, which hardly seems appropriate. ...

LinkButton Click Event

Hi everybody, I have this problem .. I have one "Login" linkbutton and one "UserList" linkbutton on one masterpage. When the user is logged in, and he clicks "UserList" linkbutton, the UserList Page which has the masterpage mentioned above, opens.(This i have achieved). but if the user is not logged in and he clicks "UserList", the "L...

When should a "property changed" event be fired?

Is it appropriate to fire a "property changed" event when the actual value of a property does not change? public int SomeProperty { get { return this.mSomeProperty; } set { this.mSomeProperty = value; OnPropertyChanged(new PropertyChangedEventArgs("SomeProperty")); } } This will trigger the event even w...

How would I create an asynchronous notification system using RESTful web services?

I have a Java application which I make available via RESTful web services. I want to create a mechanism so clients can register for notifications of events. The rub is that there is no guarantee that the client programs will be Java programs and hence I won't be able to use JMS for this (i.e. if every client was a Java app then we coul...

C# Winforms Suppress a Mouse Click event on a Text Box

I have a multi-line text box on a Winforms app that I want to be able to click on in some states of the app without changing the Text selection. I still want to subscribe to the MouseDown (or Click) event, I just don't want the text selection to react to it. I was hoping for a Handled or Cancel property on the MouseEventArgs, but sadl...