-2
我得到這個錯誤:每當我創建類形式借鑑導致異常#1
An unhandled exception of type 'System.StackOverflowException' occurred in Microsoft.VisualStudio.HostingProcess.Utilities.dll
:
class Trader : Form1
{
public void changeText(string text) {
changeLabel(text) //A method inside my Form1.Designer.cs
}
}
我覺得像我這樣做不對,我想訪問和修改我正在使用的Windows窗體(Form1)內的設計元素 。有任何想法嗎?
是的,給(很多)更多的細節。 – Amit
添加了我正在使用的方法,它在Form1.Designer.cs中@Amit – StackOverload
'changeLabel(text)'調用'changeText(text)'有什麼可能嗎? –