I have got a strange behavior with VS 2008. All exceptions raised during the load event are not shown in the debugger. VS does not stop and the rest of the code (of the load event) is not executed.
This only happens in the load event and never happens in the other events where I can go step by step and the window pops up with the excep...
I'm developing an extension to MATLAB's PsychToolbox that allows for better control of the mouse during psychophysical experiments (specifically, preventing the screen boundaries from limiting drag operations... it should feel like you can move the mouse "infinitely" in all directions). Since MATLAB doesn't support the creation of addit...
I have the following code under a TabConttrols DrawItem event that I am trying to extract into a class file. I am having trouble since it is tied to an event. Any hints or pointers would be greatly appreciated.
private void tabCaseNotes_DrawItem(object sender, DrawItemEventArgs e)
{
TabPage currentTab = tabCaseNot...
I am listening on a particular SPWeb using an SPWebEventReceiver that is successfully firing on the WebMoved event. When the web is moved I update a list with the new location/title.
What I would like to be able to do is listen for when the Web is renamed . Do I do this by attaching an item listener and waiting for an ItemUpdated even...
I have a user control that displays results from a database in a gridview. The containing page receives querystring values and passes them to the user control to load.
From the containing page, what is the best way to load and display the user control? Currently, I do the following:
Containing Page_Load: Get querystring values
Contain...
I am trying to create a custom scrollbar and am using images as button.
For now a simple
I can handle the MouseLeftButtonDown and Up event just fine but what I'd like to do is while its held down, every so many millisecond trigger an event is fired.
I tried something like this but it isn't quite working. Suggestions?
public delegat...
Which event should I use if I want to make sure
all the nested components inside a component
have been created?
Creationcomplete doesn't seem to work this way.
...
I use onLongClick and onClick events of a button to get user inputs. Whenever; the user long click and triggers onLongClick event, the onClick event is also triggered. I couldn't find my problem. The code of two methods are shown in below:
@Override
public void onClick(View v) {
switch(((Button) v).getId())
{
case R.i...
Hi,
I'd like to ask if there is in the JSP events such as the swing (eg: ActionEvent)?
...
http://weblogs.java.net/blog/kgh/archive/2004/10/multithreaded_t.html argues that multithreaded GUI frameworks are a failed dream. What about non-GUI frameworks? Does this rule of thumb extend to all event-driven frameworks?
Here is a quote from the article that caught my attention:
The problem of input event processing is that...
Using jqeury, is it possible to get a list of all the events and to which element the event is bound to?
...
Hi,
I have a CEdit text box which is a part of a property pane and only allows numeric values (positive integers). The box works fine when people enter non-numeric values, but when they delete the value in the box a dialog pops up saying:
"Please enter a positive integer."
Here is the situation:
1. I have a number (say 20) in the box.
...
Using winforms, I have set the KeyPreview property to true and have event handles for the proper key events within the base form as well.
Within the forms that inherit from it, I set the AcceptButton property based on the requirements of the application.
There are certain cases in which I want the enter key to have functionality diff...
Up to this point we have not yet needed a new masterpage for our SharePoint Site Definition. We have a theme that some of our customers will use depending on their corporate SharePoint branding.
Currently I change the 'SiteLogoUrl' in my 'FeatureReceiver' on the 'FeatureActivated' event using the following code.
public override vo...
I'm writing a little jQuery extension that prevents a user from double clicking on a link.
$.fn.preventDoubleClick = function() {
return this.click(function() {
var $t = $(this)
, retVal = $t.data('active') // check the internal flag
;
if (retVal || retVal === undefined) { // if ON...
...
I've just been working on a jQuery extension described in this question, and have now run into another problem: I need to make sure that my particular event handler runs before any other event handlers which may already be on an element.
When adding events, it appears as though they get pushed to the back of a queue, whereas I really ne...
How can I call a specific event manually from my own code?
...
Hi,
i have written the following event handler code to update a column in the
document library, on checkin of a document:
Select Case listEvent.Type
Case SPListEventType.CheckIn
sLog = sLog + "Newest Item is Checked-out" + vbCrLf
Dim ApproveStatusBoolean As Boolean = True
For Each oField In oItem.Fields
If (oItem("ApproveSt...
I built a custom event dispatcher that passes variables. I dispatch the event and then I try to listen for the event in my document root, but I never receive the event. How do I bubble the event up to my document class?
addEventListener(CustomVarEvent.pinClicked, pinClickedHandler);
function pinClickedHandler(e:CustomVarEvent) {
t...
Having a console application, a server accepting several connections from clients, is it possible to have a listener or an event on a closing application? I want, in this event, tell all connected clients to gently disconnect before the application really closes itself.
Any solution? Thank you!
...