是否可以在不通过表单添加实例的情况下动态创建MenuStrip?
我做了..。
//Create menu
MenuStrip menu = new MenuStrip();
menu.name = "MainMenu";
// Create a Menu Item
ToolStripMenuItem file = new ToolStripMenuItem("File");
//Add item to Menu
menu.Items.Add(file);
//Click event
file.Click += new System.EventHandle
我正在尝试使用Google Play游戏服务在游戏中添加排行榜。
在我显示排行榜和提交分数扩展屏幕的类中,我创建了扩展BaseGameActivity的屏幕,这是使用谷歌Play游戏服务所必需的。
当我启动app的时候,我得到了这个错误:
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:197)