Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
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 | :)
AnswerRe: Beginner Question, Sorry Pin
led mike29-Sep-06 11:28
led mike29-Sep-06 11:28 
AnswerRe: Beginner Question, Sorry Pin
Guffa29-Sep-06 11:38
Guffa29-Sep-06 11:38 
GeneralRe: Beginner Question, Sorry Pin
Bobbydoo829-Sep-06 14:51
Bobbydoo829-Sep-06 14:51 
QuestionReading an XML file into a typed Dataset Pin
gashach29-Sep-06 11:07
gashach29-Sep-06 11:07 
AnswerRe: Reading an XML file into a typed Dataset Pin
led mike29-Sep-06 11:22
led mike29-Sep-06 11:22 
GeneralRe: Reading an XML file into a typed Dataset Pin
gashach29-Sep-06 12:09
gashach29-Sep-06 12:09 
GeneralRe: Reading an XML file into a typed Dataset Pin
gashach29-Sep-06 12:13
gashach29-Sep-06 12:13 
Questionnamespaces in VS 2005 Pin
Christopher Duncan29-Sep-06 10:26
Christopher Duncan29-Sep-06 10:26 
AnswerRe: namespaces in VS 2005 Pin
Jim Conigliaro29-Sep-06 10:39
Jim Conigliaro29-Sep-06 10:39 
GeneralRe: namespaces in VS 2005 Pin
Christopher Duncan30-Sep-06 1:30
Christopher Duncan30-Sep-06 1:30 
QuestionGrouping in Dataview Pin
Mr.Sam29-Sep-06 9:59
Mr.Sam29-Sep-06 9:59 
AnswerRe: Grouping in Dataview Pin
umseker29-Sep-06 11:54
umseker29-Sep-06 11:54 
QuestionHow do I Create a Type-Ahead Control Using DART PowerWeb Live Controls???? [modified] Pin
ebonaba29-Sep-06 9:47
ebonaba29-Sep-06 9:47 
AnswerRe: How do I Create a Type-Ahead Control Using DART PowerWeb Live Controls???? Pin
LongRange.Shooter3-Oct-06 8:27
LongRange.Shooter3-Oct-06 8:27 
QuestionCreateIPForwardEntry() returning ERROR_INVALID_PARAMETER... please help!! Pin
b_girl29-Sep-06 9:30
b_girl29-Sep-06 9:30 
QuestionHow to recursively search directories Pin
iamnew2C#29-Sep-06 9:24
iamnew2C#29-Sep-06 9:24 
AnswerRe: How to recursively search directories Pin
led mike29-Sep-06 9:30
led mike29-Sep-06 9:30 

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.