Click here to Skip to main content
15,901,853 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 Kreskowiak21hrs 50mins ago
mveDave Kreskowiak21hrs 50mins ago 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
OriginalGriff21hrs 31mins ago
mveOriginalGriff21hrs 31mins ago 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak21hrs 21mins ago
mveDave Kreskowiak21hrs 21mins 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 
Hmmm, I'm reading back a sensor, it's giving values all over the show!
C#
private void button1_Click(object sender, EventArgs e)
{
    //int value = 0;

   // MessageBox.Show(textBox1.Text);

    if (int.TryParse(textBox1.Text, out int value))
    {

        if (value > 1000)
        {
            MessageBox.Show("Here!");
        }
        MessageBox.Show(value.ToString());
    }

    MessageBox.Show(value.ToString());

}

value is taken as 0, despite textBox1.Text having 1234.56...
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 
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.