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

C#

 
AnswerRe: Dealing with Lists as objects Pin
Shameel4-Nov-09 3:42
professionalShameel4-Nov-09 3:42 
QuestionRe: Dealing with Lists as objects Pin
MatthysDT4-Nov-09 18:51
MatthysDT4-Nov-09 18:51 
AnswerRe: Dealing with Lists as objects Pin
PIEBALDconsult4-Nov-09 3:56
mvePIEBALDconsult4-Nov-09 3:56 
QuestionGlass Effect using dwmapi.dll in windows xp on C# Pin
Viswa Teja4-Nov-09 2:01
Viswa Teja4-Nov-09 2:01 
AnswerRe: Glass Effect using dwmapi.dll in windows xp on C# [modified] Pin
Covean4-Nov-09 2:12
Covean4-Nov-09 2:12 
AnswerDumb attempt to bump post. Pin
Pete O'Hanlon4-Nov-09 2:41
mvePete O'Hanlon4-Nov-09 2:41 
AnswerRe: Glass Effect using dwmapi.dll in windows xp on C# Pin
Dave Kreskowiak4-Nov-09 5:20
mveDave Kreskowiak4-Nov-09 5:20 
Question[Windows Form with visual C#] - Problem with data conversion Pin
_ASPAle_4-Nov-09 1:12
_ASPAle_4-Nov-09 1:12 
Hello to all, now I expose my problem:

I'm developing a program with Visual C# express to calculate the ratio of my radio-controlled model!
How do I enter the following input data:
Number of teeth of spur gear (int), internal ratio (float), and ratio that you want to get (float).
I need as output the number of teeth of the pinion to use. The pinion is obtained with the following formula:

Pinion = (Spur Gear * Ratio) / Internal Ratio

My problem is that I don' t know how to operate the data conversions, because obviously I can' t write:

Int SpurGear = textbox1.Text;   
Float Ratio = textbox2.Text; 
Float InternalRatio= textbox3.Text;
Float Pinion = (SpurGear * Ratio) / InternalRatio;
label1.text= Pinion;


Etc Etc

Someone can help me?
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
OriginalGriff4-Nov-09 1:16
mveOriginalGriff4-Nov-09 1:16 
GeneralRe: [Windows Form with visual C#] - Problem with data conversion Pin
_ASPAle_4-Nov-09 2:17
_ASPAle_4-Nov-09 2:17 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
Giorgi Dalakishvili4-Nov-09 1:19
mentorGiorgi Dalakishvili4-Nov-09 1:19 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
Luc Pattyn4-Nov-09 2:37
sitebuilderLuc Pattyn4-Nov-09 2:37 
QuestionXNA: Game updating slowly Pin
jdneul4-Nov-09 1:06
jdneul4-Nov-09 1:06 
AnswerRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 5:49
harold aptroot4-Nov-09 5:49 
GeneralRe: XNA: Game updating slowly Pin
jdneul4-Nov-09 6:54
jdneul4-Nov-09 6:54 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 6:58
harold aptroot4-Nov-09 6:58 
GeneralRe: XNA: Game updating slowly Pin
jdneul4-Nov-09 7:46
jdneul4-Nov-09 7:46 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 9:19
harold aptroot4-Nov-09 9:19 
GeneralRe: XNA: Game updating slowly Pin
jdneul5-Nov-09 1:23
jdneul5-Nov-09 1:23 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot5-Nov-09 1:27
harold aptroot5-Nov-09 1:27 
QuestionPaper Setting Problem in Dot Matrix Printer using Crystal Report. Pin
sharad Pyakurel4-Nov-09 1:00
sharad Pyakurel4-Nov-09 1:00 
QuestionUsing StreamWriter twice Pin
Trollslayer4-Nov-09 0:56
mentorTrollslayer4-Nov-09 0:56 
AnswerRe: Using StreamWriter twice Pin
Covean4-Nov-09 1:15
Covean4-Nov-09 1:15 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 4:01
mentorTrollslayer4-Nov-09 4:01 
GeneralRe: Using StreamWriter twice Pin
Covean4-Nov-09 5:12
Covean4-Nov-09 5:12 

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.