KeyUP KeyDown Question Programming Software Development by Triple_7 … As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp Select Case e.KeyCode Case Keys.Tab Button1.PerformClick() End… blur, change, keyup Programming Web Development by filch … else { removeFields(n); } } }); $('#mc_qty').bind('blur keyup change', function() { var n = this.value || 0;… else { removeFieldsNonMember(n); } } }); $('#aw_qty').bind('blur keyup change', function() { var n = this.value || 0;… KeyPress Versus KeyUp and KeyDown Programming Software Development by jhai_salvador …the CAPS Lock is pressed. [QUOTE] KeyDown and KeyUp don't detect exactly the same information as KeyPress.… in its KeyAscii parameter, but KeyDown and KeyUp detect a physical keystroke in their KeyCode parameter. […LIST] [*]KeyUp and KeyDown can detect keystrokes not recognized by KeyPress… executing MouseDown then executing KeyUp (Object sender cant keep track the latest ob Programming Software Development by karhong … for the polygon) Now i wanted to implement keyUp(pressing delete button from keyboard, then delete the polygon…(Control)sender; if (e.Button == MouseButtons.Left) { OB = sender; controlALL.KeyUp += new KeyEventHandler(DeleteButton); } } [/code] the " object sender "… Re: My program Alex; KeyUp problem Programming Software Development by tinstaafl Handle the KeyUp event of the textbox not the form. Then call Conversation when the key code is Keys.Enter: Private Sub TextBoxInput_KeyUp(sender As Object, e As KeyEventArgs) Handles TextBoxInput.KeyUp If e.KeyCode = Keys.Enter Then Conversation End If End Sub Re: My program Alex; KeyUp problem Programming Software Development by Programmer592 …Sub FormMain_EnterKeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp Do Until e.KeyCode = Keys.Enter Loop End Sub Sub… TextBoxInput_Conversation(sender As Object, e As EventArgs) Handles Me.KeyUp TextBoxConversation.Text = "Hi! My name is Alex." + … jQuery Keyup event executing only one time. Programming Web Development by Gobble45 …;text/javascript"> $(document).ready(function() { $("#username").keyup(function(){ $("#loading").show(); setTimeout(function(){ var entered_text = $("… My program Alex; KeyUp problem Programming Software Development by Programmer592 … Sub FormMain_EnterKeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp Do Until e.KeyCode = Keys.Enter Loop End Sub I… Re: My program Alex; KeyUp problem Programming Software Development by Programmer592 … Sub TextBoxInput_KeyUp(sender As Object, e As KeyEventArgs) Handles TextBoxInput.KeyUp If e.KeyCode = Keys.Enter Then Conversation('at line after… Re: My program Alex; KeyUp problem Programming Software Development by Richard Mon just a suggestion : i think it will work if you're trying to put the whole conversation on the TextBoxConversation. Sub FormMain_EnterKeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp Do Until e.KeyCode = Keys.Enter Sub Conversation() Loop End Sub -HappyCoding Re: My program Alex; KeyUp problem Programming Software Development by Programmer592 … Sub TextBoxInput_Conversation(sender As Object, e As KeyEventArgs) Handles Me.KeyUp Do Until e.KeyCode = Keys.Enter TextBoxConversation.Text = "Hi… Re: KeyUP KeyDown Question Programming Software Development by Reverend Jim I suggest that instead of using a key type event you put your code in the textbox `Leave` event handler. That way any new text gets processed no matter how you leave the textbox. You can use the same handler for all 8 textboxes by Private Sub TextBox_Leave(sender As System.Object, e As System.EventArgs) Button1.PerformClick()… Re: blur, change, keyup Programming Web Development by Airshow Dave, On a quick looksee: [CODE=javascript] var input = $('<input type="text" name="delegate" id="delegate" />');//an instance of jQuery .... var newInput = input.clone();//also an instance of jQuery .... $(newInput).attr({'name': 'delegate' + (i + 1), 'id': 'delegate' + (i + 1)});//$(… Re: blur, change, keyup Programming Web Development by Airshow What type of element are #bv_qty, #mc_qty and #aw_qty? Re: blur, change, keyup Programming Web Development by Airshow Another thought .... Google "jQuery memory" and you will find many stories of memory leakage with jQuery. Maintaining several instances of jQuery simultaneously is certainly going to be memory hungry, so I wonder if you might consider an alternative: [CODE] var input = '<input type="text" name="delegate&… Re: blur, change, keyup Programming Web Development by Airshow The code above is untested and will need to be debugged. For example, properties [ICODE]non-delegate[/ICODE] / [ICODE]add-delegate[/ICODE] should be [ICODE]non_delegate[/ICODE] / [ICODE]add_delegate[/ICODE]. [B]Airshow[/B] Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by AndreRet I have asked the mods to move this to Snippets.:) Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by jhai_salvador Thank you. Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by Nick Evan Done. Next time, when creating a new thread, please select "code snippet" from the combobox. (it reads "discussion thread" standard). Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by jhai_salvador Thanks, I just forget to set it to the correct discusion section because I am at the Code Snippet tab when I created this thread, so I hope mods will also fix the default combo box value when creating threads. Thanks. Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by Nick Evan The only person who can do that is the queen herself. We humble minions do not have that power :) Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by AndreRet Oh yeah, the queen herself.;) Re: KeyPress Versus KeyUp and KeyDown Programming Software Development by jhai_salvador oh.. I didn't know that.. Re: executing MouseDown then executing KeyUp (Object sender cant keep track the latest ob Programming Software Development by camilojvarona Hi, Maybe you are forgetting to attach the Shape_MouseUp method to 'poligon2'. Say [icode]poligon2.MouseUp += new MouseEventHandler(Shape_MouseUp)[/icode]. Hope this Help Regards, Camilo. Re: executing MouseDown then executing KeyUp (Object sender cant keep track the latest ob Programming Software Development by karhong Hi, Thanks for replying. I've already attach to my polygon2 as well for the mouseUp. But seems like the problem still exists... :( Re: executing MouseDown then executing KeyUp (Object sender cant keep track the latest ob Programming Software Development by camilojvarona Hi, Why don't you set a Breakpoint in this line [icode] if (e.Button == MouseButtons.Left)[/icode] to see if your program it's entering the method when you click on 'poligon2' Camilo Re: executing MouseDown then executing KeyUp (Object sender cant keep track the latest ob Programming Software Development by karhong Hi, I tried, the method can run towards that point. I've solve the problem with .focus ( focusing the control of which i selected ) Thanks !! Regards, Kar Hong Re: jQuery Keyup event executing only one time. Programming Web Development by stbuchok are there any JavaScript errors? Re: jQuery Keyup event executing only one time. Programming Web Development by stbuchok Also what is stopping me from entering the username as ' go drop table users -- or any other query that can complete screw up your database? You might want to think about sanitizing input or using stored procedures. Re: jQuery Keyup event executing only one time. Programming Web Development by Gobble45 > You might want to think about sanitizing input or using stored procedures. Thanks, i actually did NOT think of this. Im going to rethink my strategy for validating the form.