Forum  General Visual ...  Visual WebGui v...  6.4.1c Textbox_keypress -> Empty Textbox.text returned
Previous Previous
 
Next Next
New Post 3/19/2010 4:06 AM
Resolved
  lmp014
83 posts
No Ranking


6.4.1c Textbox_keypress -> Empty Textbox.text returned 

Hi,

Having a textbox on the form. The user fills it and I want to react to the fact that the user pressed Enter in the Textbox.

But the textbox.text property keeps empty. The entered text isn't available to process.

I tried to fire a textbox.update, but nothing helps.

In VB.net it works.

Any Idea ?

 


    Private Sub Txt_ProductionOrder_KeyPress(ByVal sender As Object, ByVal e As Gizmox.WebGUI.Forms.KeyPressEventArgs) Handles Txt_ProductionOrder.KeyPress
        If e.KeyChar = Chr(13) Then
            Gizmox.WebGUI.Forms.MessageBox.Show(Txt_ProductionOrder.Text)
        End If
    End Sub

 

 
New Post 3/19/2010 11:34 AM
  palli
11189 posts
1st Level Poster




Re: 6.4.1c Textbox_keypress -> Empty Textbox.text returned 

Hi Imp04,

There already is an open issue on this one which you can track here.

Try if the workaround works for you, using the TextBox.EnterKeyDown event instead.

What did you mean with the comment that "In VB.NET it works" ? Does that mean that you have different results in C# and VB.NET ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 3/22/2010 6:50 AM
  lmp014
83 posts
No Ranking


Re: 6.4.1c Textbox_keypress -> Empty Textbox.text returned 

Pali,

Thanks for investigating.

It's working.

Sorry I didn't realize about this method.

Using this method it's straithforward.

The mention about VB.net  : I was meaning "classical Winforms"

 
New Post 3/22/2010 4:00 PM
  palli
11189 posts
1st Level Poster




Re: 6.4.1c Textbox_keypress -> Empty Textbox.text returned 

Hi Imp04,

Glad it worked for you and thanks for confirming.

Also thanks for clarifying the VB.net statement.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  6.4.1c Textbox_keypress -> Empty Textbox.text returned
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS