"keine Code -Analyse oder -generation unterstützt, da es nicht in einem Projekt enthalten ist, das Code unterstützt". Rufen Sie Stack < /p>
< /blockquote>
Ich habe die private Methode, die ich in Form1-Klasse hinzugefügt habe
Code: Select all
namespace Project
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void MyFunc()
{
//some code here
}
private void Button1_Click(object sender, EventArgs e)
{
MyFunc();
}
}
}