2015-06-14 86 views
-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)內的設計元素 。有任何想法嗎?

+1

是的,給(很多)更多的細節。 – Amit

+0

添加了我正在使用的方法,它在Form1.Designer.cs中@Amit – StackOverload

+3

'changeLabel(text)'調用'changeText(text)'有什麼可能嗎? –

回答