问题描述
好的,这很奇怪。我正在用C#测试搜索功能,我使用以下输入来测试它:
什么是\\\\\\?
当解决方案在表单上的标签中显示时,它只显示为是什么。结束了,所以我尝试在\\之前加上一个a。再次,它只显示是什么。然后,我把它改为:
什么是hi\\?sdfklsj
整个事情出现了。然后,我改为:
什么是hi\\?
整个事情都出现了。这真的很奇怪。几乎就像在标签的最后一个单词中的文字会导致标签的末尾被省略。还有其他人经历过这个吗?有谁知道如何修复它?
提前谢谢你,Ben
Ok, this is weird. I was testing a search function in C# and i used the following input to test it:
what is "\\hi\\"?
When the solution showed this in a label on the form, it only showed up as "what is". The end was missing, so I tried putting an "a" before the "\\. Again, it only showed "what is". Then, I changed it to:
what is "hi\\"? sdfklsj
And the whole thing showed up. Then, I changed it to:
what is "hi\\"?
And the whole thing showed up. This is really weird. It''s almost as if "\ in the last word of a label''s text causes the end of the label to be omitted. Has anyone else experienced this? Does anyone know how to fix it?
Thankyou in advance, Ben
推荐答案
这篇关于奇怪的C#标签故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!