• /r/csharp
  • Subtracting integer from label

    labelSeed.text is currently 25, I'm trying to make it so that when I click a button, labelSeed.text is subtracted by 1. I get an error regarding labelSeed.Text = Convert.ToInt32(labelSeed.Text) – 1; saying that I can not Cannot implicitly convert type 'int' to 'string' My confusion is that I had this error about the If statement […]

  • /r/csharp
  • How to structure multiple serial ports controlling different devices on a microprocessor running the .net compact framework 3.5

    I'm definitely a C# newbie and I'm having trouble conceptualizing how to build a program where multiple different serial ports will control different devices. I've built classes for the different devices where I will recall specific strings to send out the serial ports and the classes will parse the incoming strings. I feel pretty confident […]