This is something very strange ! I have a form with various controls on it . At some point I added a label on the form with some text . I run my program and I found out that the label was not on the form ! I thought I accidentally deleted it , so I stopped the program , I went on the editor and took a look , just to see the label being at its place !
That made me thought if there was any code that made the label invisible or something . I made sure there is no such code in the form so I still couldn't find out what was going on ... So I started the experiments ...
The next thing I thought was maybe the label control was drawn behind the tab page or something , so I increased the size of the label to extend over other controls . I run the program and I saw that the covered controls were indeed covered by the label , which means that the label control is indeed on place . But why there is no text on it ? ? ? ?
The next thing I tried was to add a button which , when pressed , would set the text of the label (DamnLabel.Text = "Bla bla bla") . I run the program , I pressed the button and the label indeed received the "Bla bla bla" text . This means that the problem has to do with the complete removal of the text !
But what could remove the text from my label ? It is for sure that i have no code to delete the text of any of my labels , so it's not done by code .
I noticed one more thing , which might help us find out : I noticed that the problem only takes place if there are many characters in its text . Don't take me wrong , the text I have inserted in the label is not a huge one , just about 1200 characters . The number might sound large , but is a very small text (just 3 line of text) . I have the same label on other forms with no problem . In fact one can use by far larger texts than that one .
I lastly tried one more thing : I thought maybe I have too many controls on the form (I remember that was an issue on VBA) , so I erased some other labels from the form , but the label still loses its text ...
Any ideas ?
That made me thought if there was any code that made the label invisible or something . I made sure there is no such code in the form so I still couldn't find out what was going on ... So I started the experiments ...
The next thing I thought was maybe the label control was drawn behind the tab page or something , so I increased the size of the label to extend over other controls . I run the program and I saw that the covered controls were indeed covered by the label , which means that the label control is indeed on place . But why there is no text on it ? ? ? ?
The next thing I tried was to add a button which , when pressed , would set the text of the label (DamnLabel.Text = "Bla bla bla") . I run the program , I pressed the button and the label indeed received the "Bla bla bla" text . This means that the problem has to do with the complete removal of the text !
But what could remove the text from my label ? It is for sure that i have no code to delete the text of any of my labels , so it's not done by code .
I noticed one more thing , which might help us find out : I noticed that the problem only takes place if there are many characters in its text . Don't take me wrong , the text I have inserted in the label is not a huge one , just about 1200 characters . The number might sound large , but is a very small text (just 3 line of text) . I have the same label on other forms with no problem . In fact one can use by far larger texts than that one .
I lastly tried one more thing : I thought maybe I have too many controls on the form (I remember that was an issue on VBA) , so I erased some other labels from the form , but the label still loses its text ...
Any ideas ?