On simple forms with one text box pressing enter submits the form (and this is great for easy search forms)
However on a form with multiple fields, pressing Enter in an input="text" box won't do anything (e.g. submit) but in IE it "Dings" as if you have tried to delete an undeletable object.
The question is... what event do I need to s...
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!
...
Hello,
My program draws text on its panel,but if I'd like to remove the text I have to repaint.
How do I call(raise) the paint event by hand?
...
I have a ASP.NET web form. The first time I submit the form, the SubmitButton_Click event is raised.
The form is returned to the browser either with validation errors or with the option to submit the form again with new values.
When the form is sumbitted again, the SubmitButton_Click event never fires. Page_Load fires, but not the but...
Is it possible to check if a TextCtrl is under keyboard focus (blinking cursor in text box) without defining a handler for EVT_SET_FOCUS?
I just want to do a quick boolean check to prevent a wx.Timer from overwriting the text box if the user is writing something in the box.
...
I was reading a comment about server architecture.
http://news.ycombinator.com/item?id=520077
In this comment, the person says 3 things:
The event loop, time and again, has been shown to truly shine for a high number of low activity connections.
In comparison, a blocking IO model with threads or processes has been shown, time and ag...
Let's say I have a class A which can fire an event called X. Now I have a class B and in a method I get an instance to A and bind the event to a handler in B:
public void BindEvent(A a)
{
a.X += AEventHandler;
}
I have three questions about this.
Is it true that when I now set the reference to the B instance to null, it won't be...
I have a page containing an <asp:Button/> to leave the page and a <asp:TextBox/> to get some date and another <asp:TextBox/> to confirm that data.
The confirm validator is configured as follows:
<asp:CompareValidator ID="CompareValidator" runat="server"
ErrorMessage="error message" ControlToValidate="ConfirmTextBox"
ControlToCompare="Te...
In a previous SO question it was recommended to me to use callback/event firing instead of polling. Can someone explain this in a little more detail, perhaps with references to online tutorials that show how this can be done for Java based web apps.
Thanks.
...
I have an interface for a UI widget, two of which are attributes of a presenter.
public IMatrixWidget NonProjectActivityMatrix {
set {
// validate the incoming value and set the field
_nonProjectActivityMatrix = value;
....
// configure & load non-project activities
}
public...
I'm attempting to write a custom widget and I want to use existing UI widgets within the class that I'm writing. The problem is that when an event fires the class method that is invoked seems out of scope from the rest of the class, as any members I attempt to read are undefined. Here is the code:
<script type="text/javascript">
MyCla...
How do I get a JavaScript event when a Flash movie loses focus?
eg. like when the user clicks the HTML page.
...
This works in Firefox, but not IE. Any help would be much appreciated! Thanks!
var form = document.getElementById('theform')
/* create the event handler */
form.gen.onclick = function( evt ) {
var f = evt.target.form
var y = f.year.value
var m = f.month.value
genCalendar( document, y, m, 'theCal...
I'm trying to catch hardware key press events on Windows Mobile 6.x with .NET 3.5
I have a form with buttons and other controls on it and I need to catch when keys left, right, up, and down are pressed. Unfortunately, with approach described in MSDN:
http://msdn.microsoft.com/en-us/library/microsoft.windowsce.forms.hardwarekeys.aspx
al...
I am having an ASP.NET page with one Asp.net button control and a normal html link (anchor tage) I want to invoke the postbackl event of asp.net button control when someone clicks on the link.
I used the below code
<a href="javascript:myFunction();" class="checkout" ></a>
<asp:Button ID="btnCheckout" runat="server" Visible="false"
o...
Hello,
assume i have class that exposes the following event
public event EventHandler Closing
How to name methods that are registered to this event. Do you prefer to name the methods like they are generated by Visual Studio (aka. +=, Tab, Tab)
private void TheClass_Closing( object sender, EventArgs e )
or do you use your own style...
I'm looking for the fastest way for multiple users on different machines to interact, and I think it's by using the server as the communication facilitator. So user A and user B both create a socket connection to the server of some kind and whenever user A does something it sends a message to the server, which then sends a message to use...
I am having the weirdest error.
If anyone can give me hints, I've found nothing relevant with Google.
When I hook the events on ItemCheckingOut on a Document Library (TemplateType=101) with 6 items inside, properties.ListItem will always be null for all those items.
This never happened before. The problem seem related to the fact that...
I have a Gridview with AutoGenerateColumns="False".
I am using a TemplateField to display my Edit, Update and Cancel 'buttons' in the first column of the GridView within respective ItemTemplate and EditItemTemplate fields.
Within the ItemTemplate I have an ImageButtong with a CommandName of "Edit". This works as expected and I can put a...
In our Silverlight 2 project we have created an attached property to perform on-the-fly translation to text properties of various user controls. To achieve this, we hook the Loaded event of the FrameworkElement when the property is set. When the event fires, we take the existing text property value and perform some simple string substitu...