|
hi gautham,
Thanks for the immediate response. I am using windows application in C#.
There is no textmode property for textbox control in windows application.
How to proceed?
Thanks once again.
Regards
Anuradha
|
|
|
|
|
Do the following
textBox1.PasswordChar = '\0';
|
|
|
|
|
hi,
Thanks for your help.I got it working.
Set the password char to \0 made to unmask my password.
Thanks for the help.
Regards
Anuradha
|
|
|
|
|
TextBox.PasswordChar Property
The character used to mask characters entered in a single-line TextBox control.
Set the value of this property to 0 (character value) if you do not want the control to mask characters as they are typed.
Equals 0 (character value) by default.
Gautham
|
|
|
|
|
Its just a trick...
1) Have a 2 textboxes which stores the password, one is masked and other unmasked at the same location having the same top,left,height and width.
At an instance depending upon the checkbox value, only one textbox is visible
if(checkbox checked true)
{
textboxMasked.Visibility = false;
textboxUnmasked.Visibility = true;
textboxUnMasked.Text = textboxMasked.Text
}
else
{
textboxMasked.Visibility = true;
textboxUnmasked.Visibility = false;
textboxMasked.Text = textboxunMasked.Text
}
In the check box unchecked event,do the above
Hope this solve ur issue...
please reply back if it solved ur requirement
N.Navaneethan
|
|
|
|
|
I need to do some math that involves truncating the number after the tenths place. So, I need to take some calculation and remove all digits after the first decimal place without rounding.
For example
3765/3700 * 100=101.75675675675675675675675675676
But, I need to produce from that calculation 101.7. Not 101.8 (the rounded form). Is there a built in method that performs this sort of calculation, or some other way that you might suggest? Thanks.
|
|
|
|
|
try math.ceiling or math.floor methods
Gautham
|
|
|
|
|
Hello,
If you want to show it as a string, you could use the String.Format method.
int numberofdecpoints= 10;
double d = 3765/3700 * 100;
string roundednumber = String.Format("{0:F"+ numberofdecpoints.ToString() +"}",d);
All the best,
Martin
|
|
|
|
|
May not be the prettiest
double d = 101.75675675675675675675675675676;<br />
string s = string.Format("{0:f2}", d);<br />
d = Convert.ToDouble(s.Remove(s.Length-1));
Using the specifier {0:f1} still rounds the number to 101.8, so use 0:f2 and truncate it.
only two letters away from being an asset
|
|
|
|
|
Can't you just do this?
<br />
double d = 128.158676;<br />
Convert.ToDouble(Convert.ToInt32(d * 10)) / 10;<br />
|
|
|
|
|
double d = 101.75675675675675675675675675676;
d = Math.Floor(10 * d) / 10;
Now d has a value of 101.7
Hope this helps
|
|
|
|
|
Help!
I need to convert bmp to pcx file? Does anyone have an idea?
Have problem using CXImageAtl.dll
Nataliya
|
|
|
|
|
hi everyone
i'm working with VS 2003 and can't find the create Class Diagram option.
can anyone please tell me how to make class diagram through VS 2003.
thanks for your time.
|
|
|
|
|
Saira Tanwir wrote: i'm working with VS 2003 and can't find the create Class Diagram option.
can anyone please tell me how to make class diagram through VS 2003.
There isn't one. It is a new feature of Visual Studio 2005.
|
|
|
|
|
For VS2003, you will need to use an external application such as Visio. The class designer was added in VS2005.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Class Diagram option is not available in Vs2003.
It is a new feature which is available in VS2005 only.
Regards,
Satips.
|
|
|
|
|
How many people does it take to say this? Both Pete and I already mentioned this. Pete also added a possible alternative which gave some new and potentially useful information.
|
|
|
|
|
hi guys ,
i want to make program work as monitor to store each word and text which user write when he open his computer until he turn off it , what is the general idea and step required to do this ?
|
|
|
|
|
It sounds like you are attempting to write a keylogger. I don't think many people will want to help you with that endevour, unless you can give a legitimate reason for wanting to do this.
|
|
|
|
|
i know in advance what people say when i ask what is the way to do monitor but sometime you are forced to do something required from you and no way to say i can not do it and as i say before this is aproject in my faculty and i must do it .
Hope all people understand me rigth and truth me.
Thanks again.
|
|
|
|
|
I can't think of a legitimate reason that you would want to do this. Kindly enlighten me as to what you are trying to do. Alternatively, hand yourself in at the nearest police stations because you are trying to write a keylogger which is a VERY BAD thing to do.
Putting roses in your text is not likely to get anybody here to help you become a hacker.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Putting roses in your text is not likely to get anybody here to help you become a hacker.
Yeah, I thought that was a really nice touch. However, he ought to learn that most people realise roses are usually quite thorny.
|
|
|
|
|
I am very sorry i know this is not good but this is aproject in my faculty and i must do it ,i know also everybody think wrong about me but this is what are needed from me to do.
|
|
|
|
|
As other people have said, noone is going to help you until you've managed to convince us that you're not doing this for malicious reasons. "My boss said we need it" is not going to work.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
hi,
I want to validate the onecolumn in datagridview like only digits entry.
By using keydown/keypress event how can i validate it for a perticular
column in Dtagridview.
Help me please
With Regards
prasad
|
|
|
|