Forum  General Visual ...  How do I...?  MaskedTextBox with Hour minute mask the Text property does not get valorized
Previous Previous
 
Next Next
New Post 10/11/2011 2:32 AM
  digitaldjs
48 posts
No Ranking


MaskedTextBox with Hour minute mask the Text property does not get valorized 
Modified By digitaldjs  on 10/11/2011 10:10:21 AM)

Hi,

I can't get working HourMinute mask on masked text box. With following mask 00:00 text property of the control does not get valorized. While it works fine with short day mask.

This is code i used:

public Form1(){

MaskedTextBox mText = new MaskedTextBox();
            mText.Mask = "00:00";
            mText.LostFocus += new EventHandler(mText_TextChanged);
            this.Controls.Add(mText);
        }

        void mText_TextChanged(object sender, EventArgs e)
        {
            MaskedTextBox mText = sender as MaskedTextBox;
            MessageBox.Show(mText.Text);
        }

 

Am i missing something?

 

PS: I'm using VWG 6.4.0

 
New Post 10/13/2011 2:56 PM
  palli
14415 posts
1st Level Poster




Re: MaskedTextBox with Hour minute mask the Text property does not get valorized 

Hi digitaldjs,

I admit that there is a minor language barrier here, as I don't fully understand what you mean with "valorized", and even Google Translate wasn't able to help me here

In any case, I did test your code, and the MessageBox shows the fully "11:11" or "00:00" or whatever I enter in there, so please explain further.

Sorry for the lack of understanding.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 10/18/2011 7:16 AM
  digitaldjs
48 posts
No Ranking


Re: MaskedTextBox with Hour minute mask the Text property does not get valorized 

Hi palli,

sorry for my poor english, i meant the textbox property does not get updated with the value i type on the control. The same code does not work on VWG 6.4 with .Net fm 4.0 on our servers. Now we will try to remove VWG and reinstall the latest version available on your site.

 
New Post 10/18/2011 5:26 PM
  palli
14415 posts
1st Level Poster




Re: MaskedTextBox with Hour minute mask the Text property does not get valorized 

Hi digitaldjs,

Please do and also please let us know the results when you have tested the new version.

This was a problem in the past and we do have an open tracker entry on very similar case, but it may already be fixed indirectly via some other changes that we have made.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  MaskedTextBox with Hour minute mask the Text property does not get valorized
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS