events

WinForm Event "On Select Tab"?

Hey SO, I'm building a WinForm application in C# and would like to know how to trigger code when a certain tab on a tab menu is selected. Thanks! ...

IE8 (compatibility mode) won't load my Ajax content

Hi all - I am working on a jQuery script on http://www.qxl.dk/ and I can't seem to get IE7 (or more accurately, IE8 in IE7 compatibility mode) to load my content. The sidebar box on the right named "QXL Aktuelt" loads its HTML content from an external file using Ajax load(), then triggers a custom jQuery event ("aktuelt_loaded") that st...

How can I detect when a checkbox has been selected in a WebBrowser control from within WinForms?

In my winforms application, I have a WebBrowser control which displays a page. When the user checks/unchecks a checkbox, I want to detect that, and have an event do some processing within my winforms app. Any idea if this is possible? ...

Explicit Event add/remove, misunderstood?

I've been looking into memory management a lot recently and have been looking at how events are managed, now, I'm seeing the explicit add/remove syntax for the event subscription. I think it's pretty simple, add/remove just allows me to perform other logic when I subscribe and unsubscribe? Am I getting it, or is there more to it? Also...

Looking for a full list of jQuery event types.

Where I can find a complete list of all jQuery supported events (like click, mouseup etc) with some explanations when they are triggered? I am looking for those that can be binded: $('#foo').bind('click', handler); For example I just found out by accident that there is paste event but I can't find any references to it anywhere in thei...

C#: Capturing (hooking) resize messages (WM_SIZE) for some window

I've done a bit of searching and have found a few implementations using a wrapped unmanaged .dll but haven't had any luck actually getting them to work. Such as here where I get a failure on pinvoke when attempting to initialize the hook. I used depends to check the dll and recompiled the dll myself (source was include) but no dice. I'd...

Qt: How can I receive events fired by QWebElement objects?

I want to receive notifications whenever links are clicked or text fields are changed in a Webkit instance in Qt. How can I hook up event listeners to a QWebElement? I know I can put some Javascript on each element’s onchange / onclick handler, but I’m looking for a cleaner solution. ...

jQuery: How to fire event when all asynchronous calls return?

I have a jQuery application that loads data from five asynchronous server calls. I do not want to display any data until all five calls return. (I plan on displaying a Loading message until that happens.) How can I detect when all five calls have returned? I considered having each callback method increment a variable (using jQuery's dat...

WPF - Handling events from user control in View Model

I’m building a WPF application using MVVM pattern (both are new technologies for me). I use user controls for simple bits of reusable functionality that doesn’t contain business logic, and MVVM pattern to build application logic. Suppose a view contains my user control that fires events, and I want to add an event handler to that event. ...

Why does nothing in WPF have a click event?

This seems very strange to me. I know through some adventurous inheritance you can convert most UIElements to a button, but it is a cumbersome way of implementing the most basic of of computer events ...

Adding Events To WinForms?

Happy Friday! :D I have a TextBox on a WinForm and I want to execute some code every time someone presses a key inside of that TextBox. I'm looking at the events properties menu, and see the "KeyDown" event, but don't know how to add code to it. Happy coding ...

Design for fastest page download

I have a file with millions of URLs/IPs and have to write a program to download the pages really fast. The connection rate should be at least 6000/s and file download speed at least 2000 with avg. 15kb file size. The network bandwidth is 1 Gbps. My approach so far has been: Creating 600 socket threads with each having 60 sockets and us...

Why Is the sender type null when dealing with events

From C# Via CLR: Note A lot of people wonder why the event pattern requires the sender parameter to always be of type Object After all, since the MailManager will be the only type raising an event with a NewMail EventArgs object, it makes more sense for the callback method to be prototyped like this: void MethodNa...

add event to top of event stack using jquery

I'm using jquery to add a blur event to a text box. I would like my event to fire before any other existing events. Is this possible to do? ...

Flex Can't interact with button in itemrenderer

I have a list with a itemrenderer. When I put a button in the itemrenderer I can not interact with it. If I rollover the button the list item rollover is triggered but not the button's rollover. I can't click on the button either. You can see below I have a click event set in the itemrenderer and it is not called on click when I run ...

Bind event on another window.

I'm working on an image browser/upload feature, and I'm using PHP Image Editor to help me allow users to edit their images once they've been uploaded. Images are not stored on the web server, but on a separate file server. So what I do is: when an image is selected for editing from the image browser page, I download the image from t...

ComboBox doesn't fire SelectionChanged event

Subj. I am using Silverlight 4 with VS2010, here is a source code: <ComboBox Grid.Row="4" Grid.Column="1" Name="Player2All" MinWidth="50" ItemsSource="{Binding PlayersAll}" SelectionChanged="Player2All_SelectionChanged"> <ComboBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Bi...

onTextChanged Event for many Textboxes c#

Hi, I am currently building a prototype for a new system screen, and i am using c# to build this. The question i have is, i currently have 14 textboxes which are filled from a condition from a couple of other controls on the screen. these 14 textboxes all add up to a total shown in another textbox. as these textboxes are editable (in ...

Wxpython cut copy paste and openfiledialog...

i have a web browser made in python with menu. in one menu i have cut copy paste but no functionality and i need to make them work. i need an example of class oncopy.(event menu) Open file i manage to work like this .takes file and print on screen the link to that file but how can make open dialog to open a file at least one type of fil...

Adding a UITapGestureRecognizer to a view then removing seems to short circuit button events

In the code below I am popping up a ImageView as the result of a users touchUpInside on a simple info button. There are other buttons on the view. To dismiss the info I added a UITapGestureRecognizer to my controllers view, and hide the view when the tap is detected. If I don't remove the tapGestureRecognizer, the action is called e...