Skip to main content

Microsoft Silverlight

Unanswered Question DateMask and Currency maskRSS Feed

(0)

Agnushallard
Agnushal...

Member

Member

54 points

140 Posts

DateMask and Currency mask

How I make Date mask (99/99/9999) and currency mask (0,00)??

How I able the textbox to recive only letters or only numbers??

Using

Visual Studio 2008
Silverlight 3
WCF
MySQL

Sergey.Lutay
Sergey.L...

Contributor

Contributor

7256 points

1,354 Posts

Re: DateMask and Currency mask

Look http://www.codeproject.com/KB/silverlight/STextBox.aspx

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

Blog

Twitter

Sincerely,
Sergey Lutay

Ardman
Ardman

Contributor

Contributor

3436 points

947 Posts

Re: DateMask and Currency mask

 For a textbox to receive only numbers or text, you'll need to set a validation check to make sure that the entry is valid.  You can use regular expressions to make sure that a number has only been entered in a textbox which should only accept numbers.

Agnushallard
Agnushal...

Member

Member

54 points

140 Posts

Re: DateMask and Currency mask

You are using Stextbox in Silverlight 3??

Using

Visual Studio 2008
Silverlight 3
WCF
MySQL

Ardman
Ardman

Contributor

Contributor

3436 points

947 Posts

Re: Re: DateMask and Currency mask

 Yes.  And in the metadata class I have, I've assigned a Regular Expression to only allow numbers.

Agnushallard
Agnushal...

Member

Member

54 points

140 Posts

Re: Re: DateMask and Currency mask

OK, but I have to include stextbox.dll in my project, or I have to include stextbox project in my project?? I read the article in the code project but I don´t understand how I put the stextbox in my project

Using

Visual Studio 2008
Silverlight 3
WCF
MySQL
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities