I have a problem. I have this code:
.....
Form11.show();
.....
Why it does not works? My IDE is shouting on me: http://prntscr.com/2kfkw Why? How can I repair it? Please help me.
First, I think "show" should be capitalized. Second, you want to create an instance of your form, then show it:
Form1 myForm = new Form1();
myForm.Show();
C# is case sensitive; the method name you want is probably Show().
这样尝试
new Form11().Show();
我认为应该在方法名称上使用大写S,即Form1.Show();
C# is case sensitive. Use
Form11.Show();
instead of
Form11.show();
Form11 form = new Form11();
form.Show();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.