Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试检查文本框是否以-.
-
我尝试了以下代码,但它不起作用:
if(textbox1->Text::StartWith("-")) if(String(textbox1->Text).StartWith("-");
假设这是 C++/CLI 和 WinForms(在这种情况下,您的问题确实需要重新标记),
if (textBox1->Text->StartsWith("-"))