Click here to Skip to main content
15,909,827 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak19-May-24 5:31
mveDave Kreskowiak19-May-24 5:31 
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 
GeneralRe: Command Line Arguments For IrfanView using C# WinForm Pin
Member 143542148-May-24 4:03
Member 143542148-May-24 4:03 
GeneralRe: Command Line Arguments For IrfanView using C# WinForm Pin
Dave Kreskowiak8-May-24 6:37
mveDave Kreskowiak8-May-24 6:37 
AnswerRe: Command Line Arguments For IrfanView using C# WinForm Pin
Peter_in_27807-May-24 17:29
professionalPeter_in_27807-May-24 17:29 
GeneralRe: Command Line Arguments For IrfanView using C# WinForm Pin
Member 143542148-May-24 4:06
Member 143542148-May-24 4:06 
QuestionCommunication "Server / Service" for older .NET Framework application Pin
HobbyProggy5-May-24 23:13
professionalHobbyProggy5-May-24 23:13 
AnswerRe: Communication "Server / Service" for older .NET Framework application Pin
jschell6-May-24 15:01
jschell6-May-24 15:01 

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.