Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get Instance Of Class By Name Pin
Gerry Schmitz29-Apr-16 13:02
mveGerry Schmitz29-Apr-16 13:02 
AnswerRe: Get Instance Of Class By Name Pin
Afzaal Ahmad Zeeshan30-Apr-16 10:08
professionalAfzaal Ahmad Zeeshan30-Apr-16 10:08 
AnswerRe: Get Instance Of Class By Name Pin
Richard Deeming4-May-16 2:08
mveRichard Deeming4-May-16 2:08 
QuestionHelp please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 3:51
wilcoten29-Apr-16 3:51 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 3:57
mveOriginalGriff29-Apr-16 3:57 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 4:35
professionalZurdoDev29-Apr-16 4:35 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 6:10
wilcoten29-Apr-16 6:10 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 6:20
mveOriginalGriff29-Apr-16 6:20 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 20:36
wilcoten29-Apr-16 20:36 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 21:15
mveOriginalGriff29-Apr-16 21:15 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 23:17
wilcoten29-Apr-16 23:17 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 23:50
mveOriginalGriff29-Apr-16 23:50 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten30-Apr-16 4:05
wilcoten30-Apr-16 4:05 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff30-Apr-16 4:30
mveOriginalGriff30-Apr-16 4:30 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten30-Apr-16 4:46
wilcoten30-Apr-16 4:46 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff30-Apr-16 5:06
mveOriginalGriff30-Apr-16 5:06 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten30-Apr-16 5:37
wilcoten30-Apr-16 5:37 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff30-Apr-16 5:59
mveOriginalGriff30-Apr-16 5:59 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 6:32
professionalZurdoDev29-Apr-16 6:32 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 8:33
wilcoten29-Apr-16 8:33 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 8:52
professionalZurdoDev29-Apr-16 8:52 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 9:02
wilcoten29-Apr-16 9:02 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 9:08
professionalZurdoDev29-Apr-16 9:08 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 9:21
wilcoten29-Apr-16 9:21 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 9:32
professionalZurdoDev29-Apr-16 9:32 
wilcoten wrote:
Argument 1: cannot convert from string to int"

Any suggestions for this situation?
Yes, take a deep breath and slow down. Wink | ;) Just read the error. It says you cannot convert a string to an int. And it tells you argument 1.

So, look at your function getLEBridgeNumber. It is declared to take an integer as the first argument. However, you passed in Life_path_outcome.Text and the Text property of the control is a string. So, you need to convert the string to an integer. An easy way is to simple do Convert.ToInt32(Life_path_outcome.Text). That converts whatever is in the textbox to an integer. You really want to check your input because this will fail if someone does not type a number in the textbox but for now this should work for you.
There are only 10 types of people in the world, those who understand binary and those who don't.

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.