There are 127 labels created using code, created in the FormLoad event and displayed in the tabpage2 tab. In the tabpage2 event serialPort1_DataReceived accept data, depending on the value of received bytes, I want to hover different prompts into the tooltip depending on the value of received bytes. I write this:

 toolTip1.SetToolTip(lab[1], "Подсказка") 

The compiler swallows the code, there are no errors, but no prompts are output when the program is running.

What to do?

  • Imagine a minimal, self-sufficient, reproducible example, so that those who wish to help you can launch and test them - Andrey NOP
  • " What should I do? " First you do something, paste the code that has already been written, "the compiler swallows the code " the compiler does not know how much I know, logically they wrote what is happening - Vardan Vardanyan
  • lab[1] what's this? - Alias
  • lab [1] is the name of one of the elements in the label array, which is created when the form loads - Eugene

0