masking

Text Mask c#

Hi All I need to validate a certain property to one of my classes. When I set the property, the class should validate the input and if incorrect, set the object to an invalid state. Question : The property value must be in a certain mask/format eg. &&&&-&&&&-&&&&. I cannot use regular expressions. Is it possible to validate text agains...

Bound Textbox to a currency, how to get the double?

I have a textbox bound to a currency data field. So it adds '$' to the start of the text or ($xx.xx) if it's negative. How do I get just the plain double (xx.xx) from the textbox instead of everything ($xx.xx)? ...

Data masking/scrambling

This is specifically for healthcare domain. What solutions/tools do you use to mask the PHI data while copying data from production to test environments ...

In Quartz 2D, Is it possible to mask an image by removing everything but the color channel you want?

So I tried to use the Quartz CGImageCreateWithMaskingColors function, but he only problem is that it masks the color range you are selecting. I want to mask everything but the color range I am selecting. For instance, I want to show all red colors in a picture but remove the other channels (Green and Blue). I am doing this in Objecti...

iPhone: Masking an UIImage via touches

Hi, before rolling up my sleeves and starting an own solution: Is there already an approach for masking an image via touches? Touches are marked yellow in my example: If there is no existing solution, I will try it to inspect Apple's drawing sample app to get some selections on the image. ...

Masking a textbox for Numbers only buit wont accept BackSpace

Hello, I have a textbox that I would like for only numbers. But if I hit the wrong number, I cant backspace to correct it. How can I allow backspaces to work. Thanks private void amount_PaidTextBox_KeyPress(object sender, KeyPressEventArgs e) { if (Char.IsNumber(e.KeyChar) != true) { e.Handled = true;...

How to mask a password in Java 5?

I am trying to mask a password in Java. Sun java has suggested a way to mask a password as follows. Masking a password It uses a simple way to do that. public void run () { stop = true; while (stop) { System.out.print("\010*"); try { Thread.currentThread().sleep(1); } catch(InterruptedException ie) { ie.prin...

Currency Mask with Jquery

I'm using the Jquery calculation and have just about everything working properly, but I need the total to display as 99.90, not 99.9 <-- Just an example. Here is a link the form I'm using. [link text][1] [1]: So... .toFixed(), isn't working for some reason, when it should be! I can't find a mask that would work with this problem. ...

iPhone OpenGL ES Texture2D Masking

What's the best choice when trying to mask a texture like ColorSplash or other apps like iSteam, etc? I started learning OPENGL ES like... 4 days ago (I'm a total rookie) and tried the following approach: 1) I created a colored texture2D, a grayscale version of the first texture and a third texture2D called mask 2) I also created a te...

URL masking in php?

I have a link which is like this: www.domain.com/index.php?var=string1&var2=string2 I want to mask the url to become something like: www.domain.com/index.php, or its best to be like this: www.domain.com I tried google, I found some methods: Using iframe using frameset Mod_rewrite I am using php, IIS and mysql, my server is windo...

how to mask an image using coregraphics?

i want to create an app in which i shoot a person from camera.then take only body of person not the background.i know that i need to use image masking.but don't know how to use it.could someone post a sample to do this. ...

How can I call a masked function in C++?

Let's say I have this C++ code: void exampleFunction () { // #1 cout << "The function I want to call." << endl; } class ExampleParent { // I have no control over this class public: void exampleFunction () { // #2 cout << "The function I do NOT want to call." << endl; } // other stuff }; class ExampleChild : pub...

MaskedTextProvider class behaves differently from MaskedTextBox. Why?

I have a requirement whereby I have to implement the masking provided by MaskedTextBox, but without using that UI component in the business layer or say for doing CLR integration in SQL Server 2005 (so that I can implement a db function that invokes my C# method). However there is some anomaly between the behavior of the MaskedTextBox ...

Masking an image with another image

Does anyone have an example of how to do some masking with Delphi TImage so I can have one image put on another? Using 2009 ...

URL Aliasing using .htaccess

i'm having 'domainname1/folder/' .In Domainname1 i'm having a subdirectory which is a subdomain (abc.mydomain.com) of other domain. but this is referred to 'domainname1/folder/' . the thing is that i want the URL links accessing from 'domainname1/folder/' should be displayed following with sub domain like . 'domainname1/folder/' to ...

Alpha + masking + clipping headache

Hi, Here's a graphical explanation of 1) what I have and 2) what I want http://tinyurl.com/yg5zboy My understanding is I need one or maybe two masks to accomplish this. As you can see, I want to combine both alpha channel (for the red semi circle) and a background transparency (to see the background shuttle, even through the hole in t...

Submit unmasked form value with jQuery/meioMask

I mask the input of fields like SSN to contain dashes when they are displayed but would like the value that is submitted to be only the numbers. For example, my SSN is formated as: <input type="text" name="ssn" alt="999-999-9999"/> And upon entering "1234567890" I get the nice formatted output. 123-456-7890 Now I would like only t...

How do I go about implementing sprite masking?

Using DirectX I'm rendering textured polygons (orthographically) so they act as HUD sprites. Now I'm not sure how would I go about implementing sprite masking in this sytem? So basically say I have a sprite, how can I make it render only in a given portion of the screen which I define? And if a part of it moves outside this portion of t...

Jquery: Unmasking/Revealing Corner

Hi, I am working on this site: http://waterwing.waterwing.ca/ And as you see the top right corner, when you hover over it, will expand. I need to change this effect to an extent. It will need to slowly reveal/unmask the rest of that darker trangle when you hover as opposed to expanding it. This site has a good example: http://www.so...

Flex unable to see mask

I have two sprites, the first is the mask and the second on is going to be masked by the first. Right now I can see the second sprite that is masked, but not the first that is doing the masking. Is there a way to show the sprite that is doing the mask? ...