Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to change the colour of buttons through timer in c# window application Pin
aeman11-Feb-11 22:34
aeman11-Feb-11 22:34 
GeneralRe: how to change the colour of buttons through timer in c# window application Pin
DaveyM6911-Feb-11 23:04
professionalDaveyM6911-Feb-11 23:04 
GeneralRe: how to change the colour of buttons through timer in c# window application Pin
aeman12-Feb-11 0:08
aeman12-Feb-11 0:08 
GeneralRe: how to change the colour of buttons through timer in c# window application Pin
DaveyM6912-Feb-11 0:20
professionalDaveyM6912-Feb-11 0:20 
GeneralRe: how to change the colour of buttons through timer in c# window application Pin
aeman12-Feb-11 1:02
aeman12-Feb-11 1:02 
GeneralRe: how to change the colour of buttons through timer in c# window application Pin
aeman12-Feb-11 0:06
aeman12-Feb-11 0:06 
Questionhow to insert values in text box at run time in c# and assign it to int Pin
aeman11-Feb-11 19:16
aeman11-Feb-11 19:16 
AnswerRe: how to insert values in text box at run time in c# and assign it to int Pin
OriginalGriff11-Feb-11 20:23
mveOriginalGriff11-Feb-11 20:23 
Your question isn't 100% clear: are you asking how to move values from a number (say an int) to a TextBox, and then back from a TextBox to a number again?

If so, then:
int i = 12;
double d = 12.776;
textBoxIntegerValue.Text = i.ToString();
textBoxDoubleValue.Text = d.ToString();
You can apply formatting information in the ToString method if you need to. See MSDN[^] for more info.

To go back to a number:
int i;
double d;
i = int.Parse(textBoxIntegerValue.Text);
d = double.Parse(textBoxDoubleValue.Text);

Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
aeman11-Feb-11 21:08
aeman11-Feb-11 21:08 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
Anubhava Dimri11-Feb-11 21:19
Anubhava Dimri11-Feb-11 21:19 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
aeman11-Feb-11 21:36
aeman11-Feb-11 21:36 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
Anubhava Dimri11-Feb-11 21:44
Anubhava Dimri11-Feb-11 21:44 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
OriginalGriff11-Feb-11 21:26
mveOriginalGriff11-Feb-11 21:26 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
aeman11-Feb-11 21:33
aeman11-Feb-11 21:33 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
OriginalGriff11-Feb-11 21:45
mveOriginalGriff11-Feb-11 21:45 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
DaveyM6911-Feb-11 22:15
professionalDaveyM6911-Feb-11 22:15 
GeneralRe: how to insert values in text box at run time in c# and assign it to int Pin
aeman11-Feb-11 22:39
aeman11-Feb-11 22:39 
QuestionHow to Detect Music Device Pin
Pranit Kothari11-Feb-11 19:14
Pranit Kothari11-Feb-11 19:14 
QuestionSend Mail From Localhost Pin
Anubhava Dimri11-Feb-11 18:58
Anubhava Dimri11-Feb-11 18:58 
AnswerRe: Send Mail From Localhost Pin
Richard MacCutchan11-Feb-11 21:12
mveRichard MacCutchan11-Feb-11 21:12 
GeneralRe: Send Mail From Localhost Pin
Anubhava Dimri11-Feb-11 21:16
Anubhava Dimri11-Feb-11 21:16 
GeneralRe: Send Mail From Localhost Pin
Richard MacCutchan11-Feb-11 21:20
mveRichard MacCutchan11-Feb-11 21:20 
GeneralRe: Send Mail From Localhost Pin
Anubhava Dimri11-Feb-11 21:27
Anubhava Dimri11-Feb-11 21:27 
GeneralRe: Send Mail From Localhost Pin
phil.o11-Feb-11 22:39
professionalphil.o11-Feb-11 22:39 
GeneralRe: Send Mail From Localhost Pin
Anubhava Dimri11-Feb-11 22:44
Anubhava Dimri11-Feb-11 22:44 

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.