Click here to Skip to main content
15,918,333 members
Home / Discussions / C#
   

C#

 
Questioninteracting with a webiste in c# Pin
james bradbery8-Mar-12 21:21
james bradbery8-Mar-12 21:21 
AnswerRe: interacting with a webiste in c# Pin
Dave Kreskowiak9-Mar-12 3:16
mveDave Kreskowiak9-Mar-12 3:16 
QuestionThe WebService still returns "Connection Successful" even SQL Server is off. Please Help. Pin
MarkSquall8-Mar-12 18:58
MarkSquall8-Mar-12 18:58 
AnswerRe: The WebService still returns "Connection Successful" even SQL Server is off. Please Help. Pin
Bernhard Hiller8-Mar-12 21:26
Bernhard Hiller8-Mar-12 21:26 
GeneralRe: The WebService still returns "Connection Successful" even SQL Server is off. Please Help. Pin
Sentenryu9-Mar-12 0:21
Sentenryu9-Mar-12 0:21 
AnswerRe: The WebService still returns "Connection Successful" even SQL Server is off. Please Help. Pin
Shameel9-Mar-12 1:03
professionalShameel9-Mar-12 1:03 
AnswerRe: The WebService still returns "Connection Successful" even SQL Server is off. Please Help. Pin
jschell9-Mar-12 5:16
jschell9-Mar-12 5:16 
AnswerRe: The WebService still returns "Connection Successful" even SQL Server is off. Please Help. Pin
MarkSquall11-Mar-12 21:33
MarkSquall11-Mar-12 21:33 
QuestionEncryption and decryption Pin
sandy_418-Mar-12 17:19
sandy_418-Mar-12 17:19 
AnswerRe: Encryption and decryption PinPopular
OriginalGriff8-Mar-12 20:20
mveOriginalGriff8-Mar-12 20:20 
GeneralRe: Encryption and decryption Pin
sandy_419-Mar-12 0:12
sandy_419-Mar-12 0:12 
GeneralRe: Encryption and decryption Pin
OriginalGriff9-Mar-12 0:25
mveOriginalGriff9-Mar-12 0:25 
GeneralRe: Encryption and decryption Pin
sandy_419-Mar-12 0:27
sandy_419-Mar-12 0:27 
GeneralRe: Encryption and decryption Pin
Matt Meyer9-Mar-12 3:54
Matt Meyer9-Mar-12 3:54 
GeneralRe: Encryption and decryption Pin
Wayne Gaylard9-Mar-12 0:36
professionalWayne Gaylard9-Mar-12 0:36 
GeneralRe: Encryption and decryption Pin
OriginalGriff9-Mar-12 0:40
mveOriginalGriff9-Mar-12 0:40 
QuestionWhere is this c# console application running from?? Pin
Goalie358-Mar-12 17:08
Goalie358-Mar-12 17:08 
AnswerRe: Where is this c# console application running from?? Pin
Roger Wright8-Mar-12 17:30
professionalRoger Wright8-Mar-12 17:30 
AnswerRe: Where is this c# console application running from?? Pin
RobCroll9-Mar-12 3:19
RobCroll9-Mar-12 3:19 
GeneralRe: Where is this c# console application running from?? Pin
Roger Wright9-Mar-12 5:02
professionalRoger Wright9-Mar-12 5:02 
AnswerRe: Where is this c# console application running from?? Pin
jschell9-Mar-12 5:23
jschell9-Mar-12 5:23 
GeneralRe: Where is this c# console application running from?? Pin
Vasudevan Deepak Kumar9-Mar-12 9:54
Vasudevan Deepak Kumar9-Mar-12 9:54 
QuestionDecimal format in the textbox Text Change C# (1000000 -> 1,000,000) Pin
nhanlaptrinh8-Mar-12 16:03
nhanlaptrinh8-Mar-12 16:03 
AnswerRe: Decimal format in the textbox Text Change C# (1000000 -> 1,000,000) Pin
OriginalGriff8-Mar-12 20:37
mveOriginalGriff8-Mar-12 20:37 
Sorry, but that doesn't make much sense.
When you post code, please use the code widget above the textbox - it preserves formatting which makes the whole thing more readable.
I have reformatted your code, and also refactored it to make it more readable - taking out redundant conditions and so forth:

C#
if (textBox1.Text != "")
    {
    int iIndex = textBox1.Text.IndexOf('.');
    if (iIndex != -1)
        {
        string strT = textBox1.Text.Substring(iIndex + 1, 1);
        }
    double a = double.Parse(textBox1.Text.Trim(','));
    textBox1.Text = a.ToString("#,###");
    }
The trouble is that I have no idea what you are trying to do, so I also have no idea what problem you are trying to get help with!
Please try to explain a bit better so we can help you.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: Decimal format in the textbox Text Change C# (1000000 -> 1,000,000) Pin
nhanlaptrinh9-Mar-12 0:56
nhanlaptrinh9-Mar-12 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.