Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Question regarding TextChanged and AutoSave Events
Captell

From: Melbourne, Australia
Posts: 10
Member Since: 03/29/09
posted April 5, 2009 3:01 AM

I have set the following properties
 hb.AutoSaveFrequency = 10
 hb.AutoSaveInterval = 5
I understand that because of this the Autosave event should fire every 5 seconds and/or every 10 key strokes.

I've included the following subs

Private Sub hb_AutoSave(ByVal sender As Object, ByVal e As System.EventArgs) Handles hb.AutoSave
  Beep()
End Sub

Private Sub hb_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles hb.TextChanged
  Beep()
End Sub

When I run my app, the Autosave event doesn't fire at all, however the Textchanged event fires every 10 keystrokes. If less than 10 keystrokes, it never fires. 

Is this a bug or am I doing something wrong?
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted April 6, 2009 10:28 AM

Your understanding is correct. Unfortunately I was not able to reproduce the behavior you describe. I used the following Event Handler and put a break point on the line beginning with "Capture =". When debugging the IDE would break on that line every 5 seconds or every 10 keystrokes:

  Protected Sub HtmlBox1_AutoSave(ByVal sender As Object, ByVal e As System.EventArgs) Handles HtmlBox1.AutoSave
    Dim Capture As String
    Capture = HtmlBox1.TextPlain
  End Sub
Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX