Click here to Skip to main content
15,901,799 members
Home / Discussions / C#
   

C#

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:36
cofounderChris Maunder12-Jul-09 22:36 
PinnedHow to get an answer to your question Pin
Chris Maunder10-Nov-05 16:31
cofounderChris Maunder10-Nov-05 16:31 
QuestionWhere to hand over the instance of my plugin dll class to another class Pin
AtaChris18-May-24 8:34
AtaChris18-May-24 8:34 
AnswerRe: Where to hand over the instance of my plugin dll class to another class Pin
OriginalGriff18-May-24 20:20
mveOriginalGriff18-May-24 20:20 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak20hrs ago
mveDave Kreskowiak20hrs ago 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
OriginalGriff19hrs 41mins ago
mveOriginalGriff19hrs 41mins ago 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak19hrs 31mins ago
mveDave Kreskowiak19hrs 31mins ago 
QuestionFind email-enabled public folders exclusively using "Microsoft.Office.Interop.Outlook" Pin
temuco14-May-24 4:25
professionaltemuco14-May-24 4:25 
QuestionI need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 4:19
professionalglennPattonWork39-May-24 4:19 
AnswerRe: I need to convert a the string of a Text box to a Value Pin
Tony Hill9-May-24 4:41
professionalTony Hill9-May-24 4:41 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Richard Deeming9-May-24 4:43
mveRichard Deeming9-May-24 4:43 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Tony Hill9-May-24 4:47
professionalTony Hill9-May-24 4:47 
AnswerRe: I need to convert a the string of a Text box to a Value Pin
Richard Deeming9-May-24 4:42
mveRichard Deeming9-May-24 4:42 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 5:03
professionalglennPattonWork39-May-24 5:03 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Richard MacCutchan9-May-24 6:02
mveRichard MacCutchan9-May-24 6:02 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 6:48
professionalglennPattonWork39-May-24 6:48 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
Richard MacCutchan9-May-24 6:56
mveRichard MacCutchan9-May-24 6:56 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 7:06
professionalglennPattonWork39-May-24 7:06 
Hi,

This is the code I have been trying to get all afternoon!
C#
 private void button1_Click(object sender, EventArgs e)
 {
        float ForceVal = 0;
        //MessageBox.Show(weightTxt.Text);
        //ForceVal = Convert.ToDecimal(weightTxt.Text);

<pre>
    //int.TryParse(weightTxt.Text, out int value);
    decimal.TryParse(weightTxt.Text, out decimal value);
   //  MessageBox.Show(value.ToString());
     if (value > 1000)
     {
         MessageBox.Show("Here!");
     }
     MessageBox.Show(value.ToString());

}

I think that should do it. I'm hacking together a test program that interfaces to a Phidget load cell in trying to measure a value that needs to converted to Newtons from Grams (I think!). I hate the fact I wasted so much time trying to get the value to be used out of a darned label. I haven't really done much Windows code (I'm an embedded guy really) since VS2008 was the new kid on the block and times like these it shows! Sigh | :sigh:
GeneralRe: I need to convert a the string of a Text box to a Value Pin
jeron19-May-24 6:58
jeron19-May-24 6:58 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 7:10
professionalglennPattonWork39-May-24 7:10 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
jeron19-May-24 6:05
jeron19-May-24 6:05 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
glennPattonWork39-May-24 6:58
professionalglennPattonWork39-May-24 6:58 
GeneralRe: I need to convert a the string of a Text box to a Value Pin
jeron19-May-24 7:19
jeron19-May-24 7:19 
QuestionCommand Line Arguments For IrfanView using C# WinForm Pin
Member 143542147-May-24 8:50
Member 143542147-May-24 8:50 
AnswerRe: Command Line Arguments For IrfanView using C# WinForm Pin
Dave Kreskowiak7-May-24 14:55
mveDave Kreskowiak7-May-24 14:55 

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.