I have a FileSystemWatcher instance running in the background of my PoSh session watching for changes to text files. A PoSh event subscriber is attached to this event and, when fired, it launches a console program by calling Start-Process. This program steals de focus from the current foreground window (my PoSh console). Calling SetForeg...
For some really weird reason when i set the .Enabled property to false on a simple text box on a small GUI, it fires a radio buttons OnClick event and its causing lots of problems.
I have breakpointed the txtBox.Enabled = false; and after stepping over OR into it i jump straight to the OnClick event of the radio button control
Here is ...
In physics library written in C# I have the following code:
(in ContactManager.cs)
public delegate void PostSolveDelegate(Contact contact, ref ContactImpulse impulse);
public PostSolveDelegate PostSolve;
And an example that uses that code is:
(in Test.cs)
public virtual void PostSolve(Contact contact, ref ContactImpulse impulse)
{
...
With the Google Maps Flash API, I want to add an event listener which fires when the Marker is added to the Map using map.addOverlay(); Event.ADDED_TO_STAGE is not fired, though it seems logical. What are the alternatives?
...
I managed to set the compiler to execute another program when the project is built/ran with the following directive in project options:
call program.exe param1 param2
The problem is that the compiler executes "program.exe" and waits for it to terminate and THEN the project executable is ran.
What I ask: How to set the compiler to run...
I have an aspx page that contains an update panel. Within this there are several user controls, each with a label to display an error.
Within these controls are more child controls where exceptions are caught and an ExceptionEncountered event is raised to deal with them.
The parent control (with the error label) listens for the Except...
Total n00b to C# and events although I have been programming for a while.
I have a class containing a text box. This class creates an instance of a communication manager class that is receiving frames from the Serial Port. I have this all working fine.
Every time a frame is received and its data extracted, I want a method to run in m...
Currently we are looking for a solution to have unique profile for our user. We are having a different set of applications and the different profiles like is SAP , in DB and in AD too. We want to make sure If user alters his/her profile from any of application it should have replicate in all the data sources. We are looking for NServiceB...
I would like to create a method that takes as a argument an event an adds eventHandler to it to handle it properly. Like this:
I have 2 events:
public event EventHandler Click;
public event EventHandler Click2;
Now i would like to pass particular event to my method like this (pseudocode):
public AttachToHandleEvent(EventHandler MyEv...
As the title says, I need a notification when the content of a canvas element was redrawn.
Is this possible?
If not, a notification when the whole page was redrawn would also be ok (reDRAWN not reLOADED!).
The reason why I need this is that I want to get the current FPS of an animation running inside a canvas.
...
I want to postion a DIV inside a page such that it is visible to the user even if the user vertically scrolls the page.
The page has a heading at the top of the page which is 75 px tall. Now when the user is at the top of the page and has not scrolled vertically, the DIV must be postioned below the heading. However, once the user scrol...
Hi.
I have a problem using C# Webbrowser control.
the problem is with the event DocumentComplited.
Usually the event works fine.
the problem is with this page:http://www.voiproblem.com/emulators/Netgear/WGR614v6/fw_forward.html
when I (automatically) press on "add" the control navigates to:http://www.voiproblem.com/emulators/Netgear/WGR...
I'd like to do something like this:
Window.addWindowClosingHandler(new Window.ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
event.setMessage("Really?");
IF user clicks ok in the dialog, execute code below. Else skip the code and return to ...
I've got listbox that employs an item template. Within each item in the list, as defined in the template there is a button. When the user clicks the button I change a value in the data source that defines the sort order of the list. Changing the datasource is not a problem as this is working just fine within my application template.
How...
Hi,
I have a question regarding events in c#.
Lets say I have an object obj1 of a class that exposes an event, and this object is running on thread t1. Now on different thread t2, there is another object called obj2 that is registered for the event of obj1.
Is it promised that obj2 will get the event when it will be raised?
thanks.
...
this is my code, and I can't remove the mousedown eventlistener :
//*********** double right click ********/
var c =0 ;
function time(event){
if(event.button == 2){
c++;
setTimeout(cc, 600);
}
if (c >1){
alert('ok i get it')
}
}
//$('#map_canvas')[0].mousedown(time);
$('#map_canvas')[0].addEventListener('mousedown...
Looking for some help or programmng ideas or mayeb there is some pattern that would help. Have an application that needs to fire alot of events sequentially, it could up to 100 or more unique events, it will be dynamic depeneding on the situation.
Trying to find the best practice for doing this. My main idea right now is to create a li...
I want to test that setting a certain property (or more generally, executing some code) raises a certain event on my object. In that respect my problem is similar to http://stackoverflow.com/questions/248989/unit-testing-that-an-event-is-raised-in-c, but I need a lot of these tests and I hate boilerplate. So I'm looking for a more genera...
I have a web form that has 2 radio buttons, depending on which one is clicked it displays a hidden element
This works fine in all browsers except for IE6, which, after I click on the radio button, I have to click again (anywhere on the window) and then the element is displayed...has anyone had behavior like this before?
I tried to not...
In javascript, let say I got two nodes(node A, node B). when I click on node A, can I transfer "click" event to node B, so event handler for node B will execute.
...