Click here to Skip to main content
15,919,422 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading Pin
Christopher Duncan30-Sep-06 1:32
Christopher Duncan30-Sep-06 1:32 
QuestionSFTP client and server dll for C# windows form Pin
Pavan Josh29-Sep-06 21:17
Pavan Josh29-Sep-06 21:17 
QuestionMobile API in C# Pin
yousafzai29-Sep-06 20:28
yousafzai29-Sep-06 20:28 
Questionproblem in querying database Pin
DownBySpj29-Sep-06 19:45
DownBySpj29-Sep-06 19:45 
AnswerRe: problem in querying database Pin
Nafiseh Salmani29-Sep-06 19:56
Nafiseh Salmani29-Sep-06 19:56 
GeneralRe: problem in querying database Pin
DownBySpj29-Sep-06 20:52
DownBySpj29-Sep-06 20:52 
AnswerRe: problem in querying database Pin
jeyapandian29-Sep-06 20:49
jeyapandian29-Sep-06 20:49 
AnswerRe: problem in querying database Pin
Stefan Troschuetz29-Sep-06 22:44
Stefan Troschuetz29-Sep-06 22:44 
Questionreturning arrays from function Pin
DownBySpj29-Sep-06 19:06
DownBySpj29-Sep-06 19:06 
AnswerRe: returning arrays from function Pin
zhengdong jin29-Sep-06 20:12
zhengdong jin29-Sep-06 20:12 
QuestionDeployment problem with events called from COM Pin
Symbul29-Sep-06 18:57
Symbul29-Sep-06 18:57 
QuestionHow to keep my app from being "killed" Pin
Darryl Borden29-Sep-06 18:51
Darryl Borden29-Sep-06 18:51 
AnswerRe: How to keep my app from being "killed" Pin
Syed Mujtaba Hassan29-Sep-06 21:09
Syed Mujtaba Hassan29-Sep-06 21:09 
AnswerRe: How to keep my app from being "killed" Pin
geo_m29-Sep-06 21:34
geo_m29-Sep-06 21:34 
QuestionMouse pointer Pin
Nafiseh Salmani29-Sep-06 18:46
Nafiseh Salmani29-Sep-06 18:46 
AnswerRe: Mouse pointer Pin
Nafiseh Salmani29-Sep-06 21:13
Nafiseh Salmani29-Sep-06 21:13 
QuestionDiagramming application Pin
Mustafa Ismail Mustafa29-Sep-06 16:55
Mustafa Ismail Mustafa29-Sep-06 16:55 
QuestionStill Brginner!!!! Pin
Bagie29-Sep-06 13:43
Bagie29-Sep-06 13:43 
AnswerRe: Still Brginner!!!! Pin
Nader Elshehabi29-Sep-06 14:36
Nader Elshehabi29-Sep-06 14:36 
GeneralRe: Still Brginner!!!! Pin
Bagie1-Oct-06 13:17
Bagie1-Oct-06 13:17 
Questionsocket.beginrecieve method for UDP. find out who sent you the data? Pin
mmatteson29-Sep-06 12:48
mmatteson29-Sep-06 12:48 
AnswerRe: socket.beginrecieve method for UDP. find out who sent you the data? Pin
geo_m29-Sep-06 21:45
geo_m29-Sep-06 21:45 
Newsi didnt know its so simple (pdf) Pin
Amar Chaudhary29-Sep-06 12:25
Amar Chaudhary29-Sep-06 12:25 
QuestionCodec Probelm Pin
snouto29-Sep-06 12:24
snouto29-Sep-06 12:24 
QuestionBeginner Question, Sorry Pin
Bobbydoo829-Sep-06 11:07
Bobbydoo829-Sep-06 11:07 
I've been looking through my samples of code and my book but I can't find what I need.
I'm mainly wondering if I can convert string to int somehow...?

string tempValue;
string tempValue2;
string upc;

tempValue = upc.Substring(0, 1);
tempValue2 = upc.Substring(2, 1);

txtTempValue.Text = tempValue + tempValue2; //instead of displaying in 13 string format, I need 1 + 3 = 4, but below it must be in string format so that I can make sure the user entered it in a specific format: mmmppp-c

//Validate UPC format.

if (upc.Length != 8
|| upc.Substring(6, 1) != "-")
{
MessageBox.Show("UPC format is required in mmmppp-c format.",
Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
txtUpc.Focus();
return;
}

Whenever I try to convert string to int I keep recieving the message, cannot implicitly convert to string to int.

What I've tried that seemed like it should work::::
txtTempValue.Text = (decimal) tempValue + (decimal) tempValue2; //didn't work at all

Any help at all would be appreciatedSmile | :)

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.