When you set a control object's id other than wxID_ANY in wxFormbuilder that will cause the issue. This may be a bug of new version wxFormbuilder.