Click here to Skip to main content
15,886,815 members
Home / Discussions / C#
   

C#

 
AnswerRe: File permissions when writing a file to FTP server using FtpWebRequest Pin
Pete O'Hanlon25-Jun-15 9:28
mvePete O'Hanlon25-Jun-15 9:28 
GeneralRe: File permissions when writing a file to FTP server using FtpWebRequest Pin
DanDan_T25-Jun-15 12:07
DanDan_T25-Jun-15 12:07 
GeneralRe: File permissions when writing a file to FTP server using FtpWebRequest Pin
DanDan_T26-Jun-15 5:29
DanDan_T26-Jun-15 5:29 
AnswerRe: File permissions when writing a file to FTP server using FtpWebRequest Pin
Brisingr Aerowing25-Jun-15 19:48
professionalBrisingr Aerowing25-Jun-15 19:48 
QuestionHOw to solve input string was not in the correct format Pin
Siao Da25-Jun-15 4:50
Siao Da25-Jun-15 4:50 
AnswerRe: HOw to solve input string was not in the correct format Pin
Pete O'Hanlon25-Jun-15 4:58
mvePete O'Hanlon25-Jun-15 4:58 
GeneralRe: HOw to solve input string was not in the correct format Pin
Siao Da25-Jun-15 5:08
Siao Da25-Jun-15 5:08 
GeneralRe: HOw to solve input string was not in the correct format Pin
CHill6025-Jun-15 6:04
mveCHill6025-Jun-15 6:04 
Remove the lines
C#
knn = textBox1.Text;

wup = Convert.ToInt32(knn);
and replace with
C#
if (!int.TryParse(textBox1.Text, out wup))
{
    // insert your own message here
    MessageBox.Show("Please enter an integer value");
    return;
}


Some other points ... instead of using
textBox2.Text = "Index = " + Convert.ToString(t);
you can use the built-in ToString() method e.g.
textBox2.Text = "Index = " + t.ToString();
or possibly even better
textBox2.Text = String.Format("Index = {0}", t);
There is more tidying up you could do but I'll leave it there
QuestionDoes anyone experienced in the text-to-speech in C# WinForm ? Pin
goldsoft24-Jun-15 23:51
goldsoft24-Jun-15 23:51 
AnswerRe: Does anyone experienced in the text-to-speech in C# WinForm ? Pin
Mycroft Holmes24-Jun-15 23:56
professionalMycroft Holmes24-Jun-15 23:56 
AnswerRe: Does anyone experienced in the text-to-speech in C# WinForm ? Pin
Eddy Vluggen25-Jun-15 9:48
professionalEddy Vluggen25-Jun-15 9:48 
QuestionWhat to do if I want to return rows from different tables in ASP.NET WebService Pin
jasonalien24-Jun-15 22:41
jasonalien24-Jun-15 22:41 
AnswerRe: What to do if I want to return rows from different tables in ASP.NET WebService Pin
F-ES Sitecore25-Jun-15 0:02
professionalF-ES Sitecore25-Jun-15 0:02 
GeneralRe: What to do if I want to return rows from different tables in ASP.NET WebService Pin
jasonalien25-Jun-15 0:14
jasonalien25-Jun-15 0:14 
GeneralRe: What to do if I want to return rows from different tables in ASP.NET WebService Pin
F-ES Sitecore25-Jun-15 0:23
professionalF-ES Sitecore25-Jun-15 0:23 
Questionstoring result into byte[] Pin
Member 1171394224-Jun-15 21:04
Member 1171394224-Jun-15 21:04 
AnswerRe: storing result into byte[] Pin
Pete O'Hanlon24-Jun-15 23:50
mvePete O'Hanlon24-Jun-15 23:50 
GeneralRe: storing result into byte[] Pin
Member 1171394227-Jun-15 0:39
Member 1171394227-Jun-15 0:39 
QuestionWinform MDI child form render not properly. Pin
kutty balaji24-Jun-15 20:42
kutty balaji24-Jun-15 20:42 
AnswerRe: Winform MDI child form render not properly. Pin
Dave Kreskowiak25-Jun-15 3:42
mveDave Kreskowiak25-Jun-15 3:42 
QuestionOwn Mail Server with own domain Pin
abhijit.mdccb24-Jun-15 20:20
abhijit.mdccb24-Jun-15 20:20 
AnswerRe: Own Mail Server with own domain Pin
Richard MacCutchan24-Jun-15 22:15
mveRichard MacCutchan24-Jun-15 22:15 
QuestionSaving stream as a PDF file to disk Pin
Member 1171394224-Jun-15 12:17
Member 1171394224-Jun-15 12:17 
AnswerRe: Saving stream as a PDF file to disk PinPopular
Sascha Lefèvre24-Jun-15 13:53
professionalSascha Lefèvre24-Jun-15 13:53 
GeneralRe: Saving stream as a PDF file to disk Pin
Member 1171394227-Jun-15 0:38
Member 1171394227-Jun-15 0:38 

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.