I've got a DevExpress TcxGrid, with an event handler attached to its GridView's OnEditValueChanged event that's supposed to summarize some data in one of the columns. Problem is, this event gets fired during validation, before the updated value has been written to the underlying dataset. I'm not too familiar with the TcxGrid. Does any...
Hi,
I am building a framework for loading minigames (in swf), and am running into a problem.
I currently have a listener that listens for events that the child minigame sends to the parent framework. However, if the child sends two messages (events) too close to each other, it seems that the first event simply get ignored, which causes...
Let's say I have my client application and it makes a connection to the MySQL server. Fantastic. I don't implement this as a thread. I just utilise the MySQLConnection class.
And now let's say Jim who's really careless about the office accidently reboots the MySQL server without asking permission first.
I want to know when the disconne...
Hi,
I just created an event handler to determine when a new item is added to the solution explorer; however, I'm unable to obtain the properties of the item(Name, etc).
In the event handler method, I just have my project item. Is there any way I could possibly use an interface to obtain the information I need?
Thank you!
...
I am trying to capture any keystroke that happens inside my Silverlight 2 application. There are not any input fields, I'm writing a game, and need to know which of the arrow keys are being pressed. My best guesses at how to capture these through an event handler are unsuccessful. Any recommendations?
...
Let's say, I can not modify class A.
I have this in class A<T>:
There is a JumpNext() method:
public void JumpNext();
It fires an event in class A<T>, called Next
And this in my class B:
public T Next()
{
instanceofA.JumpNext();
//instanceofA.Next += something;
// wait for event
// someting(object sender, AEventArgs...
I am dynamically adding a bunch of controls to a form. Each control calls the same method, and in that method I need to know the array index of the the control that performed the action.
CheckBox[] myCB = new CheckBox[100];
int i;
for (i = 0; i < 100; i++)
{
myCB[i] = new CheckBox();
myCB[i].Text = "Clicky!";
myCB[i].Click +...
I assume I am not the first one having this problem and I am normally pretty good at googling for stuff but in this case I didn't succeed in finding a solution, so I'll post it here.
I have some experience in VB.NET and WinForms, now I am working on an ASP.NET project and I decided to do it in C#, so I can learn more technologies / lang...
Hi,
Let's say I have an event. Let's call it DoStuff. Before DoStuff happens, I'm trying to use another event, PreviewDoStuff, to check if I need to prevent DoStuff from being called. The problem I'm facing with this is that I'm unable to get any kind of value back from the PreviewDoStuff, like a return code or anything due to how event...
Hello,
I've created a user control that contains a button and a few other controls.
When declaring my user control in the html markup I'd like to do some sort of :
<asp:CustomControl onclick="CustomControl_Click" ID="cc1" runat="server">
Where CustomControl_Click is obviously the action I want to call when my control's button is ...
fileReference.addEventListener(Event.COMPLETE, uploadCompleteHandler);
private function uploadCompleteHandler(event:Event):void {}
Above is one way to add an event listener in Actionscript.
By default the callback function needs to have an argument with
name event and type Event.
Is there a way to declare this function without any ...
Hi,
I am creating a custom Widget which extends SurfaceView and I am planning to use it for camera preview.
In the main activity I tried to implement some event listeners but can't catch any event.
This is the part of code where I tried to add an event listener:
videoPreview = (CaptureView)findViewById(R.id.capturePreview);
vide...
In the following code (inspired by this snippet), I use a single event handler buttonClick to change the title of the window. Currently, I need to evaluate if the Id of the event corresponds to the Id of the button. If I decide to add 50 buttons instead of 2, this method could become cumbersome. Is there a better way to do this?
import ...
How can I click a Button in one form and update text in a TextBox in another form?
...
What im trying to do is when the p inherits the class "active" that div.test will print the link rel correctly.
Currently if the page loads without the class assigned to the p tag, it will not. How can I make it happen when the p tag inherits the class "active" the link printed in div.test will get the rel printed correctly?
$(documen...
Hello,
I have a user control that contains a textbox. The user control is itself contained in another user control (parent).
When the text is changed (OnTextChanged event) I need a way to tell the parent user control.
So I would have something alongs the lines of :
<uc1:MyUserControl OnChanged="DoSomething" runat="server" ID="MyUse...
Hi!
Background: I'm using WPF and C# (3.5) and am working on an app that allows a user to view a form/window/usercontrol that's already part of a compiled assembly. When they view it, they should be able to click on any control (buttons, textboxes, even labels), a little popup editor should appear by the control where they can then ty...
I want to do some validation whenever the value of a textfield changes. I don't see an on change event mentioned in the documentation though.
...
I want an app's main window to ignore mouse and keyboard events, passing them to applications underneath it in the window manager Z-order.
I see how to make child widgets ignore keyboard or mouse events, but how about the main window?
I'm trying to make a desktop widget that always sits just over the background and is totally invisib...
Hello.
I am designing a Windows form application wherein I need to call, from Form A, a click event for a command button on Form B. Form B needs to remain hidden at all times. It was simple to do this in Visual Basic, I'd just call it like this: "FormName.ControlName.Event/Method".
This isn't working for me now in C#, Visual Studio 8. ...