.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to make masked text box for TabletPC?.

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :WPF

hi Juhani,

I have a requirement like to create masked textboxes(Phone number with extension, zip,SSN)..I created them successfully..but if I ran my app on tablet PC and entering data with pen..then the mask and validation not working properly.

For ex: (___) ___-____ for this if I use pen and enter phone number i.e., 7324859000...in the masked textbox it is showing like this...   (7324859000___) ___-____.

Is there any chance to fix this. I am getting headache with this.

Please help me if you can.



View Complete Post

More Related Resource Links

Masked Text box editing is difficult

I've implemented Matthew MacDonald's MaskedTextbox control, from his book, "Pro WPF in C# 2008".  It works fine, with one or 2 exceptions.  One of them is that when a user selects all of the contents in the textbox, they're used to hitting the delete key and that clearly everything out, so they can type over it.  For example, I've got a mask of "000000" for one of the boxes.  The users are used to selecting all 6 digits and then hitting the delete key and having that clear it out.  But this doesn't work that way.  Instead what they have to do is go to the end of the 6 digits and then hit the backspace kery 6 times.  That isn't anywhere near convenient as the old MaskTextBox in WinForms.  What can I do to make get this functionality back?Rod

i make a web site using frame . A.Text box is in parent window . but i want when frame is load(fram

i make a web site using frame . A.Text box is in  parent window . but i want when frame is load(frame window Coding ) then parent window text is changed l(1)suppose parent window Text. is a when child widow is load thenparent window Text. is b

How to make bold/regular font text the same width

Hi! In Excel the width of texts in bold font cells have the same width as regular font ones. My question is how to do that programmatically (in a DataGridView, labels, paint event, anywhere...). I can do this if I draw the string twice in the paint event (1 pixel shift for the second draw), but it requires 2 drawings of course, which I think is not too efficient. Is there any other solution? Some trick in creating the bold font? Thank you, Feri

Making the program make text boxes according to a num of a variabe

i have a text abox that the user need to enter a number then according to this number the program need to show text boxes

How to put a TreeNode into Edit mode and make the text unselected

I have a c# app in which I would like to allow the user to enter new nodes in a TreeView control without having to use the mouse. I am able to intercept keystrokes in OnKeyDown, and the following code is working successfully: TreeNode newNode = new TreeNode( e.KeyData.ToString() ); Nodes.Add(newNode); LabelEdit = true; newNode.BeginEdit(); The problem is that the first letter in the node being edited is selected, which causes the following keystroke to replace the selected character.  Typing "HELLO" results in "ELLO", unless the user first presses the right-arrow key to deselect the selected first character. I tried setting e.Node.IsSelected = false in OnBeforeLabelEdit, but cannot because the IsSelected property is read-only. How can I programatically deselect the first character and position the edit cursor after the first character?

Masked text box text alignment


Hi All,


I have an issue which smells like a culture issue, but I can't find any difference in the language/region settings.


I have a windows forms application using masked edit text boxes to display comma separated numbers. The boxes' RightToLeft property is set to 'Yes' and the TextAlign property is set to 'Left'. This is so that the mask is aligned to the right, and when focus moves to that edit box the cursor is at the far right and the number expands to the left as you type.


When I package the app up and deploy it, the mask is still aligned to the right, but the cursor goes to the left-most position, and the number expands to the right as you type.


This looks like an environment problem to me, but I can't see anything in the language and regional settings on my test box that's different from my development machines.


Any ideas?



how to make text fit into column of a gridview



i'm bindng data to gridview using bound field.one column of gridview is linkbutton.if the text is more than the cell width then the gridview width is increasing automatically.for ex if i have text like "microsoft asp.net forums" then it's displaying the whole text.but i need that text like "microsoft.....".how to display like this in gridview?can any one help me?

Make a Combo Box look like a Text Box


Hello, I'm new to WPF and I'm struggling to find a solution for my application. I have a group of four combo boxes. I would like them to appear as a text box until the combo box either captures a mouse over or has focus. Of course when the combo box appears via a trigger the data in the text box should be found in the combo box and displayed. I suppose an alternative solution would be to have the drop down icon appear and disappear based on the focus of the text box either via a mouse over or a focus event. At any rate the goal I'm looking for is a cleaner appearance on my form by displaying the data in a combo box without the drop down indicator of a combo box i.e. more like a simple text box, yet with the ease of use and selectable choices that a combo box provides. Eventually the combo box will be bound.



VS 2010 c# .Net 3.5(I have to use the 3.5 framework)

Here is what I have so far...

<UserControl . . .

      <Style x:Key="cboYellow" TargetType="{x:Type ComboBox}">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Top"

How to make a panel visible based on the validation of a text box?



I have a text box and some validation on it. I want to make a panel visible only when

it is successfully validated,i.e.,textbox entry is valid.Also,I want to capture the entered valid value(it should be integer within 1-8) in a session,based on this number,I am going to add that many rows in an editable grid view.

How to do that?

make bold part of the text



Is there a way to make bold part of the text in table cell in Reporting services 2005? Maybe some function that can do this?

How to get text from Masked Text Box without the masked format while its empty


Hi there,

   Im using a maskedtextbox with mask value of "000-00-0000" . If I try to get the text value of the maskedtextbox while its empty its returning "   -  -". I would like to get empty string wen no data entered.

Please do the needful ASAP.

Thanks in Advance,

Mark As Answer or Vote As Helpful if My Reply Does.

How to make an ExpressionTextBox wrap text on overflow


Normally, when you type inside an ExpressionTextBox in a custom ActivityDesigner, the ExpressionTextBox doesn't wrap (break into multiple lines) when the line is full. Even when I set a maximum width, it still doesn't wrap text. However, ExpressionTextBox does support multiple lines, I can add a new line by typing enter.

Is there any way to make it wrap text automatically on overflow? Unlike TextBlock, it doesn't have the TextWrapping property.

AutoCompleteStringCollection for text box in DataGridView 2.0

I have been searching for a way to have autocomplete in a DataGridTextBox
object. There does not appear to be an obvious way to do this like you would
for a TextBox outside of a grid using the AutoCompleteCustomSource. Any
thoughts on how I can add this collection? :)

Built-in Functions - Text and Image Functions in SQL Server

Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Future versions of SQL Server will not support TEXT, NTEXT and IMAGE data types. Columns with TEXT / NTEXT data type do not support commonly used string functions such as LEN, LEFT, RIGHT, etc. Furthermore, due to the large size of TEXT data you''re likely to see performance issues if you store such data in the database. However, at times you can''t help but use the TEXT / NTEXT / IMAGE data types (for example when supporting 3rd party databases when you cannot change the schema) - this is when text and image functions come in handy.

Built-in Functions - Text and Image Functions

Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Conversion of text files from ANSI to UTF-8

reading and writing text files in ANSI format and
writing html-files in Charset ISO-8859-1 (Western Europe).

Text to Voice

Text to Voice and Voice to Text convert

Voice to Text conversion:-
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend